summaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
Diffstat (limited to 'Annex')
-rw-r--r--Annex/Locations.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/Annex/Locations.hs b/Annex/Locations.hs
index a19560682..0d71ef92e 100644
--- a/Annex/Locations.hs
+++ b/Annex/Locations.hs
@@ -151,8 +151,9 @@ gitAnnexLocation' key r config crippled symlinkssupported checker gitdir
- for new content, unless symlinks are supported too.
- Then hashDirMixed is used. But, the content could be
- in either location so check both. -}
- | symlinkssupported = check $ map inrepo $ reverse $ annexLocations config key
- | crippled = checkall
+ | crippled = if symlinkssupported
+ then check $ map inrepo $ reverse $ annexLocations config key
+ else checkall
{- Regular repositories only use hashDirMixed, so
- don't need to do any work to check if the file is
- present. -}