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:
parent
eda5d9cc74
commit
d56175164b
1 changed files with 3 additions and 2 deletions
|
@ -151,8 +151,9 @@ gitAnnexLocation' key r config crippled symlinkssupported checker gitdir
|
||||||
- for new content, unless symlinks are supported too.
|
- for new content, unless symlinks are supported too.
|
||||||
- Then hashDirMixed is used. But, the content could be
|
- Then hashDirMixed is used. But, the content could be
|
||||||
- in either location so check both. -}
|
- in either location so check both. -}
|
||||||
| symlinkssupported = check $ map inrepo $ reverse $ annexLocations config key
|
| crippled = if symlinkssupported
|
||||||
| crippled = checkall
|
then check $ map inrepo $ reverse $ annexLocations config key
|
||||||
|
else checkall
|
||||||
{- Regular repositories only use hashDirMixed, so
|
{- Regular repositories only use hashDirMixed, so
|
||||||
- don't need to do any work to check if the file is
|
- don't need to do any work to check if the file is
|
||||||
- present. -}
|
- present. -}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue