Fix the fix for uncommitted local git-svn changes.
[synfig.git] / synfig-studio / trunk / build_tools / autorevision.sh
index c3c67cf..6464d73 100644 (file)
@@ -20,6 +20,8 @@ get_git_svn_id(){
        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
+               export REVISION="$REVISION"`cd "$1"; git diff --quiet HEAD || echo M`
        fi
 }