summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtools/version.sh7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/version.sh b/tools/version.sh
index 9f47afcfd2..332dbc1838 100755
--- a/tools/version.sh
+++ b/tools/version.sh
@@ -45,11 +45,10 @@ gitversion() {
# Is this a git-svn commit?
if ! git log HEAD^.. --pretty=format:"%b" | grep -q "git-svn-id: svn" ; then
mod="M"
- fi
-
# Are there uncommitted changes?
- git update-index --refresh --unmerged > /dev/null
- if git diff-index --name-only HEAD | read dummy; then
+ elif git diff --name-only HEAD | read dummy; then
+ mod="M"
+ elif git diff --name-only --cached HEAD | read dummy; then
mod="M"
fi