Detect version from git submodule

This commit is contained in:
pelya
2014-03-15 19:53:53 +02:00
parent 6dc8be0332
commit d7b18a8e2d
2 changed files with 2 additions and 2 deletions

View File

@@ -84,7 +84,7 @@ if [ -d "$ROOT_DIR/.svn" ] || [ -d "$ROOT_DIR/../.svn" ]; then
else
REV="r$REV_NR"
fi
elif [ -d "$ROOT_DIR/.git" ]; then
elif [ -e "$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