diff options
author | Joey Hess <joey@kitenet.net> | 2014-07-15 14:39:31 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-07-15 14:39:31 -0400 |
commit | be0ea0cb47ab4ccb24f285b8043262d8dc356b7f (patch) | |
tree | 0c97ae5b570b5db306973151746eea2c00b05e79 /Remote | |
parent | 312941335215fab3cbfc4ae64420fb3e00a5f840 (diff) |
catch exception when repo is really not available
Diffstat (limited to 'Remote')
-rw-r--r-- | Remote/Git.hs | 4 |
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 |