From 930b8f454a406e7f2159db6c423eb71eaf47f914 Mon Sep 17 00:00:00 2001 From: pabs Date: Thu, 21 Feb 2008 04:43:16 +0000 Subject: [PATCH] Fix bug with the autorevision git-svn support where local, non-committed changes did not add an M to the devel version. git-svn-id: http://svn.voria.com/code@1796 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/build_tools/autorevision.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/synfig-studio/trunk/build_tools/autorevision.sh b/synfig-studio/trunk/build_tools/autorevision.sh index c3c67cf..0402507 100644 --- a/synfig-studio/trunk/build_tools/autorevision.sh +++ b/synfig-studio/trunk/build_tools/autorevision.sh @@ -20,6 +20,10 @@ 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 + if ! git diff --quiet HEAD ; then + export REVISION="$REVISION"M + fi fi } -- 2.7.4