1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-19 20:49:11 +00:00

(svn r21839) -Change: Support tags created by git-svn for the revision detection.

This commit is contained in:
michi_cc
2011-01-18 21:27:30 +00:00
parent 561449992a
commit 73da045f50
2 changed files with 20 additions and 2 deletions

View File

@@ -99,6 +99,11 @@ elif [ -d "$ROOT_DIR/.git" ]; then
# No rev? Maybe it is a custom git-svn clone
REV_NR=`LC_ALL=C git log --pretty=format:%b --grep="git-svn-id:.*@[0-9]*" -1 | sed "s@.*\@\([0-9]*\).*@\1@"`
fi
TAG=`git name-rev --name-only --tags --no-undefined HEAD 2>/dev/null`
if [ -n "$TAG" ]; then
BRANCH=""
REV=$TAG
fi
elif [ -d "$ROOT_DIR/.hg" ]; then
# We are a hg checkout
if [ -n "`hg status | grep -v '^?'`" ]; then