Fix the fix for uncommitted local git-svn changes.
authorpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 24 Feb 2008 05:38:10 +0000 (05:38 +0000)
committerpabs <pabs@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 24 Feb 2008 05:38:10 +0000 (05:38 +0000)
git-svn-id: http://svn.voria.com/code@1810 1f10aa63-cdf2-0310-b900-c93c546f37ac

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
 }