Detect branch better. Don't forget to clean autorevision.h in core.
[synfig.git] / synfig-studio / trunk / build_tools / autorevision.sh
index de4a5b6..d8a5c8b 100644 (file)
@@ -22,7 +22,7 @@ get_git_id(){
                BRANCH='master'
        else
                BRANCH=`echo $BRANCH | cut -d ' ' -f 1`
-               BRANCH=${BRANCH#*/}
+               BRANCH=${BRANCH##*/}
        fi
        export REVISION=`git show --pretty=format:%ci HEAD |  head -c 10 | tr -d '-'`
        export COMPARE=`git rev-parse --git-dir`