From bd514eb65a24d35086ed77d2268ec73ddfbab053 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 15 Jul 2014 14:39:31 -0400 Subject: [PATCH] catch exception when repo is really not available --- Remote/Git.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Remote/Git.hs b/Remote/Git.hs index 6308f5cd64..a493d3d68b 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