- export REVISION=`git show --pretty=format:%ci HEAD | head -c 10`
- REVISION=${REVISION:0:4}${REVISION:5:2}${REVISION:8:2}
- export COMPARE="$1/.git/"
+ export REVISION=`git show --pretty=format:%ci HEAD | head -c 10 | tr -d '-'`
+ export COMPARE=`git rev-parse --git-dir`