fetchsvn: fixup name guessing after #23851
I can't see any unfixed differences due to that PR, at least in nix-env -qa output for the four Hydra platforms.
This commit is contained in:
parent
705b2d9b66
commit
3ca0990da1
@ -8,7 +8,9 @@ let
|
||||
fst = head;
|
||||
snd = l: head (tail l);
|
||||
trd = l: head (tail (tail l));
|
||||
path_ = reverseList (splitString "/" url);
|
||||
path_ =
|
||||
(p: if head p == "" then tail p else p) # ~ drop final slash if any
|
||||
(reverseList (splitString "/" url));
|
||||
path = [ (removeSuffix "/" (head path_)) ] ++ (tail path_);
|
||||
in
|
||||
# ../repo/trunk -> repo
|
||||
|
Loading…
x
Reference in New Issue
Block a user