split annexLocations
To avoid mistakes like commit 0ccbed4f6f
,
be explicit about the two variants of this.
Incidentially avoids a small amount of overhead in calling reverse.
Sponsored-by: Shae Erisson on Patreon
This commit is contained in:
parent
aa33c928cb
commit
635e7f3e26
2 changed files with 27 additions and 25 deletions
|
@ -429,8 +429,8 @@ keyUrls gc repo r key = map tourl locs'
|
|||
-- If the remote is known to not be bare, try the hash locations
|
||||
-- used for non-bare repos first, as an optimisation.
|
||||
locs
|
||||
| remoteAnnexBare remoteconfig == Just False = reverse (annexLocations gc key)
|
||||
| otherwise = annexLocations gc key
|
||||
| remoteAnnexBare remoteconfig == Just False = annexLocationsNonBare gc key
|
||||
| otherwise = annexLocationsBare gc key
|
||||
#ifndef mingw32_HOST_OS
|
||||
locs' = map fromRawFilePath locs
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue