diff --git a/src/saveVersion.sh b/src/saveVersion.sh index 73778b48e68..9607daa2cf9 100755 --- a/src/saveVersion.sh +++ b/src/saveVersion.sh @@ -31,7 +31,7 @@ cwd=`pwd` if [ -d .svn ]; then revision=`svn info | sed -n -e 's/Last Changed Rev: \(.*\)/\1/p'` url=`svn info | sed -n -e 's/URL: \(.*\)/\1/p'` -elif [ -d ../.git ]; then +elif [ -d .git ]; then revision=`git log -1 --pretty=format:"%H"` hostname=`hostname` url="git://${hostname}${cwd}"