Fix s/$remote// mistake.

$remote could have contained /.
This commit is contained in:
Konrad Borowski 2013-11-29 15:26:33 +01:00
parent 9f986d8a86
commit e1608362d0

View file

@ -246,7 +246,7 @@ function __fish_git_prompt_show_upstream --description "Helper function for __fi
set -l cur_prefix
for i in (seq (count $svn_remote))
set -l remote $svn_remote[$i]
set -l mod_upstream (echo $svn_upstream | sed "s/$remote//")
set -l mod_upstream (echo $svn_upstream | sed "s|$remote||")
if test "$svn_upstream" != "$mod_upstream"
# we found a valid remote
set svn_upstream $mod_upstream