fetchsvn: correctly handle trailing slashes

`splitString` does not split on trailing separators.

+1 -1
+1 -1
pkgs/build-support/fetchsvn/default.nix
··· 8 8 snd = l: head (tail l); 9 9 trd = l: head (tail (tail l)); 10 10 path_ = reverseList (splitString "/" url); 11 - path = if head path_ == "" then tail path_ else path_; 11 + path = [ (removeSuffix "/" (head path_)) ] ++ (tail path_); 12 12 in 13 13 # ../repo/trunk -> repo 14 14 if fst path == "trunk" then snd path