aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_git_prompt.fish
diff options
context:
space:
mode:
authorGravatar Brian Gernhardt <brian@gernhardtsoftware.com>2013-07-27 10:35:46 -0400
committerGravatar Brian Gernhardt <brian@gernhardtsoftware.com>2013-07-27 10:35:46 -0400
commitaa8b3cb6d6195761412406b532283236a34bf7d0 (patch)
tree0385f63affe35949fe6dcc62dc43bd8942cd0438 /share/functions/__fish_git_prompt.fish
parentc62d9c37d2d6a97800f12857cb431c6543347bd1 (diff)
git_prompt: fix non-informative upstream
`test -n informative` will always succeed. We want to test the informative variable instead so that other modes can still work.
Diffstat (limited to 'share/functions/__fish_git_prompt.fish')
-rw-r--r--share/functions/__fish_git_prompt.fish2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_git_prompt.fish b/share/functions/__fish_git_prompt.fish
index 7d46e82a..e1f9a8fd 100644
--- a/share/functions/__fish_git_prompt.fish
+++ b/share/functions/__fish_git_prompt.fish
@@ -275,7 +275,7 @@ function __fish_git_prompt_show_upstream --description "Helper function for __fi
case '*' # diverged from upstream
echo "$___fish_git_prompt_char_upstream_prefix$___fish_git_prompt_char_upstream_diverged$ahead-$behind"
end
- else if test -n informative
+ else if test -n "$informative"
echo $count | read -l behind ahead
switch "$count"
case '' # no upstream