summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Remote/Git.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Remote/Git.hs b/Remote/Git.hs
index 6308f5cd6..a493d3d68 100644
--- a/Remote/Git.hs
+++ b/Remote/Git.hs
@@ -192,7 +192,9 @@ tryGitConfigRead r
| Git.GCrypt.isEncrypted r = handlegcrypt =<< getConfigMaybe (remoteConfig r "uuid")
| Git.repoIsUrl r = return r
| otherwise = store $ liftIO $
- readlocalannexconfig `catchNonAsync` (const $ Git.Config.read r)
+ readlocalannexconfig
+ `catchNonAsync` (const $ Git.Config.read r)
+ `catchNonAsync` (const $ return r)
where
haveconfig = not . M.null . Git.config