From 969928e5008965e7d0114574274a533ef1f4fe42 Mon Sep 17 00:00:00 2001 From: Kevin Ballard Date: Wed, 31 Jul 2013 14:50:39 -0700 Subject: [PATCH] git_prompt: Fix bad test if bash.showUntrackedFiles isn't set --- share/functions/__fish_git_prompt.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/functions/__fish_git_prompt.fish b/share/functions/__fish_git_prompt.fish index 610bdd6a5..64d7a748e 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