fixing the untracked flag being always up

This commit is contained in:
François Schmidts 2014-01-22 14:54:07 +01:00 committed by Olivier Mengué
parent f6a9bdeee9
commit 6c012c28d6

View File

@ -710,7 +710,7 @@ _lp_git_branch_color()
local end
end="$NO_COL"
if LC_ALL=C \git status -s 2>/dev/null | grep -q '^\?\?'; then
if LC_ALL=C \git status -s 2>/dev/null | grep -Eq '^\?\?'; then
end="$LP_COLOR_CHANGES$LP_MARK_UNTRACKED$end"
fi