fix probing for local gcrypt repos
This commit is contained in:
parent
995e1e3c5d
commit
101099f7b5
1 changed files with 1 additions and 1 deletions
|
@ -375,7 +375,7 @@ coreGCryptId = "core.gcrypt-id"
|
||||||
- (Also returns a version of input repo with its config read.) -}
|
- (Also returns a version of input repo with its config read.) -}
|
||||||
getGCryptId :: Bool -> Git.Repo -> Annex (Maybe Git.GCrypt.GCryptId, Git.Repo)
|
getGCryptId :: Bool -> Git.Repo -> Annex (Maybe Git.GCrypt.GCryptId, Git.Repo)
|
||||||
getGCryptId fast r
|
getGCryptId fast r
|
||||||
| Git.repoIsLocal r = extract <$>
|
| Git.repoIsLocal r || Git.repoIsLocalUnknown r = extract <$>
|
||||||
liftIO (catchMaybeIO $ Git.Config.read r)
|
liftIO (catchMaybeIO $ Git.Config.read r)
|
||||||
| not fast = extract . liftM fst <$> getM (eitherToMaybe <$>)
|
| not fast = extract . liftM fst <$> getM (eitherToMaybe <$>)
|
||||||
[ Ssh.onRemote r (Git.Config.fromPipe r, Left undefined) "configlist" [] []
|
[ Ssh.onRemote r (Git.Config.fromPipe r, Left undefined) "configlist" [] []
|
||||||
|
|
Loading…
Reference in a new issue