mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 05:28:49 +00:00
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.
This commit is contained in:
parent
c62d9c37d2
commit
aa8b3cb6d6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue