Merge branch 'master' into s3-aws
This commit is contained in:
commit
8eac9eab03
22 changed files with 324 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue