Use etl::mutexes to lock access to reference counts.
[synfig.git] / synfig-studio / trunk / build_tools / autorevision.sh
index ec7ec8d..0402507 100644 (file)
 get_git_svn_id(){
        export SCM=git-svn
        export REVISION=`cd "$1"; git svn find-rev HEAD`
-       export COMPARE="$1/.git/svn"
+       export COMPARE="$1/.git/"
        if [ x = "x$REVISION" ] ; then
                # The extra M at the end is for Modified
                export REVISION=`cd "$1"; git svn find-rev \`git rev-list --max-count=1 --grep='git-svn-id: ' HEAD\``M
+       else
+               if ! git diff --quiet HEAD ; then
+                       export REVISION="$REVISION"M
+               fi      
        fi
 }