Bash: Fix untracked files check.

This commit is contained in:
Artem Sapegin 2013-02-22 13:16:07 +04:00
parent 77d8b3e033
commit 5ffb925cc6
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ function prompt_command() {
# Modified files
git diff --no-ext-diff --quiet --exit-code --ignore-submodules 2>/dev/null || dirty=1
# Untracked files
[ -z "$dirty" ] && git ls-files --others --error-unmatch . >/dev/null 2>&1 && dirty=1
[ -z "$dirty" ] && test -n "$(git status --porcelain)" && dirty=1
# Format Git info
if [ -n "$dirty" ]; then