aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_git_prompt.fish
diff options
context:
space:
mode:
authorGravatar Konrad Borowski <glitchmr@myopera.com>2013-11-29 15:26:33 +0100
committerGravatar Konrad Borowski <glitchmr@myopera.com>2013-11-29 15:26:33 +0100
commite1608362d0d1da493153e6884486ce82deab27dd (patch)
tree6f98625942565e8b08df12394286a6c5eb301995 /share/functions/__fish_git_prompt.fish
parent9f986d8a8660193d5a716a65307adb3708f14a24 (diff)
Fix s/$remote// mistake.
$remote could have contained /.
Diffstat (limited to 'share/functions/__fish_git_prompt.fish')
-rw-r--r--share/functions/__fish_git_prompt.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/functions/__fish_git_prompt.fish b/share/functions/__fish_git_prompt.fish
index 3012f8ef..ba59c5fa 100644
--- a/share/functions/__fish_git_prompt.fish
+++ b/share/functions/__fish_git_prompt.fish
@@ -2,7 +2,7 @@
#
# Written by Kevin Ballard <kevin@sb.org>
# Updated by Brian Gernhardt <brian@gernhardtsoftware.com>
-#
+#
# This is heavily based off of the git-prompt.bash script that ships with
# git, which is Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>.
# The act of porting the code, along with any new code, are Copyright (C) 2012
@@ -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