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