diff options
-rw-r--r-- | pkgs/build-support/fetchsvn/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchsvn/default.nix b/pkgs/build-support/fetchsvn/default.nix index 228a5eaa580..90dc13439a0 100644 --- a/pkgs/build-support/fetchsvn/default.nix +++ b/pkgs/build-support/fetchsvn/default.nix @@ -8,7 +8,7 @@ let snd = l: head (tail l); trd = l: head (tail (tail l)); path_ = reverseList (splitString "/" url); - path = if head path_ == "" then tail path_ else path_; + path = [ (removeSuffix "/" (head path_)) ] ++ (tail path_); in # ../repo/trunk -> repo if fst path == "trunk" then snd path |