catch exception when repo is really not available

This commit is contained in:
Joey Hess 2014-07-15 14:39:31 -04:00
parent 4e44bda4cc
commit bd514eb65a

View file

@ -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