From aa8b3cb6d6195761412406b532283236a34bf7d0 Mon Sep 17 00:00:00 2001 From: Brian Gernhardt Date: Sat, 27 Jul 2013 10:35:46 -0400 Subject: [PATCH] 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. --- share/functions/__fish_git_prompt.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_git_prompt.fish b/share/functions/__fish_git_prompt.fish index 7d46e82a8..e1f9a8fdb 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