git-prompt: Test untracked the right way around

This only showed untracked files if showuntrackedfiles was != true.

That's just exactly wrong.

Fortunately this wasn't in a release.

[ci skip]
This commit is contained in:
Fabian Homborg 2019-02-10 13:59:22 +01:00
parent b7e0f14fe0
commit df28f76698

View File

@ -414,7 +414,7 @@ function fish_git_prompt --description "Prompt function for Git"
set s $___fish_git_prompt_char_stashstate
end
if test "$untracked" != true
if test "$untracked" = true
set u (__fish_git_prompt_untracked)
end
end