mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix s/$remote// mistake.
$remote could have contained /.
This commit is contained in:
parent
9f986d8a86
commit
e1608362d0
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# Written by Kevin Ballard <kevin@sb.org>
|
# Written by Kevin Ballard <kevin@sb.org>
|
||||||
# Updated by Brian Gernhardt <brian@gernhardtsoftware.com>
|
# Updated by Brian Gernhardt <brian@gernhardtsoftware.com>
|
||||||
#
|
#
|
||||||
# This is heavily based off of the git-prompt.bash script that ships with
|
# 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>.
|
# 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
|
# 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
|
set -l cur_prefix
|
||||||
for i in (seq (count $svn_remote))
|
for i in (seq (count $svn_remote))
|
||||||
set -l remote $svn_remote[$i]
|
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"
|
if test "$svn_upstream" != "$mod_upstream"
|
||||||
# we found a valid remote
|
# we found a valid remote
|
||||||
set svn_upstream $mod_upstream
|
set svn_upstream $mod_upstream
|
||||||
|
|
Loading…
Reference in a new issue