avoid checking locations in regular repo

In commit 2d00523609 I accidentially
made gitAnnexLocation do more work, checking content locations,
when used in a regular repo.
This commit is contained in:
Joey Hess 2016-05-16 17:19:07 -04:00
parent eda5d9cc74
commit d56175164b
Failed to extract signature

View file

@ -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. -}