aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_git_prompt.fish
diff options
context:
space:
mode:
authorGravatar Kevin Ballard <kevin@sb.org>2013-07-31 14:50:39 -0700
committerGravatar David Adam (zanchey) <zanchey@ucc.gu.uwa.edu.au>2013-08-05 12:41:58 +0800
commit969928e5008965e7d0114574274a533ef1f4fe42 (patch)
tree5c5f8fb112bbe32efcb16905bae8f180dbfee337 /share/functions/__fish_git_prompt.fish
parentf30a5fe2888e57daf56b4d1d93fc7576f3bd43ac (diff)
git_prompt: Fix bad test if bash.showUntrackedFiles isn't set
Diffstat (limited to 'share/functions/__fish_git_prompt.fish')
-rw-r--r--share/functions/__fish_git_prompt.fish3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/functions/__fish_git_prompt.fish b/share/functions/__fish_git_prompt.fish
index 610bdd6a..64d7a748 100644
--- a/share/functions/__fish_git_prompt.fish
+++ b/share/functions/__fish_git_prompt.fish
@@ -375,7 +375,8 @@ function __fish_git_prompt --description "Prompt function for Git"
end
if test -n "$__fish_git_prompt_showuntrackedfiles"
- if test (git config --bool bash.showUntrackedFiles) != false
+ set -l config (git config --bool bash.showUntrackedFiles)
+ if test "$config" != false
if git ls-files --others --exclude-standard --error-unmatch -- '*' >/dev/null ^/dev/null
set u $___fish_git_prompt_char_untrackedfiles
end