summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-10-01 14:38:20 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-10-01 14:38:54 -0400
commit2e3990d125b96a13545b55a203f41e3bf09e75e3 (patch)
treebecb803c3007e6ef6c965bb2ff364751e8705759
parent5e242ed6de52c52bab51c94a23d8ad1fac80b6a4 (diff)
fix probing for local gcrypt repos
-rw-r--r--Remote/GCrypt.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Remote/GCrypt.hs b/Remote/GCrypt.hs
index 475a4785f..acbf3cd68 100644
--- a/Remote/GCrypt.hs
+++ b/Remote/GCrypt.hs
@@ -375,7 +375,7 @@ coreGCryptId = "core.gcrypt-id"
- (Also returns a version of input repo with its config read.) -}
getGCryptId :: Bool -> Git.Repo -> Annex (Maybe Git.GCrypt.GCryptId, Git.Repo)
getGCryptId fast r
- | Git.repoIsLocal r = extract <$>
+ | Git.repoIsLocal r || Git.repoIsLocalUnknown r = extract <$>
liftIO (catchMaybeIO $ Git.Config.read r)
| not fast = extract . liftM fst <$> getM (eitherToMaybe <$>)
[ Ssh.onRemote r (Git.Config.fromPipe r, Left undefined) "configlist" [] []