Merge pull request #186 from ogr3/untracked-files-bug

Fixed bug where not all untracked files in folders were shown
master
Martin Gondermann 10 years ago
commit b72c7678e9
  1. 2
      gitstatus.sh

@ -15,7 +15,7 @@ if [ -z "${__GIT_PROMPT_DIR}" ]; then
__GIT_PROMPT_DIR="$( cd -P "$( dirname "${SOURCE}" )" && pwd )" __GIT_PROMPT_DIR="$( cd -P "$( dirname "${SOURCE}" )" && pwd )"
fi fi
gitstatus=$( LC_ALL=C git status --porcelain --branch ) gitstatus=$( LC_ALL=C git status --untracked-files=all --porcelain --branch )
# if the status is fatal, exit now # if the status is fatal, exit now
[[ "$?" -ne 0 ]] && exit 0 [[ "$?" -ne 0 ]] && exit 0

Loading…
Cancel
Save