use. Someone already tried to handle this situation but it was
b0rken. Fixed.
CAN_BUILD_SVN_REVISION="yes"
fi
else
- if git status> /dev/null 2>&1; then
+ if git status >/dev/null 2>&1; then
echo "have Git repository."
- TAG=`git rev-parse HEAD`
- BRANCH="`git show-branch |head -n1 |sed 's;.*\[\(.*\)\].*;\1;'`"
- BUILD="GIT: $BRANCH : $TAG"
+ BUILD=`/usr/bin/git log -1 --pretty=%H . `
echo "This code base git-revision: $BUILD"
CAN_BUILD_SVN_REVISION="yes"
else