summaryrefslogtreecommitdiff
path: root/Remote/Helper
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-08-09 13:40:21 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-08-09 13:40:21 -0400
commitd03284c66e5f356421da06a17bf0e71d7b205157 (patch)
tree6b01d20c50b0b98524dae41b05878b30484fcf3f /Remote/Helper
parent113f2031dcb04f728cee4bb56fa41aa7b1539c1e (diff)
parent425730f03a68cfa6a0e43a88c83f3470d8724627 (diff)
Merge branch 'master' into s3-aws
Diffstat (limited to 'Remote/Helper')
-rw-r--r--Remote/Helper/Git.hs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Remote/Helper/Git.hs b/Remote/Helper/Git.hs
index d76cb2ee7..b405fd358 100644
--- a/Remote/Helper/Git.hs
+++ b/Remote/Helper/Git.hs
@@ -26,7 +26,7 @@ availabilityCalc r
{- Avoids performing an action on a local repository that's not usable.
- Does not check that the repository is still available on disk. -}
-guardUsable :: Git.Repo -> a -> Annex a -> Annex a
-guardUsable r onerr a
- | Git.repoIsLocalUnknown r = return onerr
+guardUsable :: Git.Repo -> Annex a -> Annex a -> Annex a
+guardUsable r fallback a
+ | Git.repoIsLocalUnknown r = fallback
| otherwise = a