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.GCrypt.isEncrypted r = handlegcrypt =<< getConfigMaybe (remoteConfig r "uuid")
|
||||||
| Git.repoIsUrl r = return r
|
| Git.repoIsUrl r = return r
|
||||||
| otherwise = store $ liftIO $
|
| otherwise = store $ liftIO $
|
||||||
readlocalannexconfig `catchNonAsync` (const $ Git.Config.read r)
|
readlocalannexconfig
|
||||||
|
`catchNonAsync` (const $ Git.Config.read r)
|
||||||
|
`catchNonAsync` (const $ return r)
|
||||||
where
|
where
|
||||||
haveconfig = not . M.null . Git.config
|
haveconfig = not . M.null . Git.config
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue