(svn r19895) -Fix [FS#3836]: Git version detection would sometimes mistakenly identify a checkout as modified.

This commit is contained in:
michi_cc
2010-05-26 03:31:05 +00:00
parent 0599e8e97d
commit 3e7fc229ab
2 changed files with 10 additions and 0 deletions

View File

@@ -87,6 +87,8 @@ if [ -d "$ROOT_DIR/.svn" ]; then
fi
elif [ -d "$ROOT_DIR/.git" ]; then
# We are a git checkout
# Refresh the index to make sure file stat info is in sync, then look for modifications
git update-index --refresh >/dev/null
if [ -n "`git diff-index HEAD \"$SRC_DIR\"`" ]; then
MODIFIED="2"
fi