catch exception when repo is really not available
This commit is contained in:
parent
4e44bda4cc
commit
bd514eb65a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue