mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-19 22:22:44 +08:00
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:
parent
b7e0f14fe0
commit
df28f76698
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user