X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fbuild_tools%2Fautorevision.sh;fp=synfig-studio%2Ftrunk%2Fbuild_tools%2Fautorevision.sh;h=0402507eb6287989a7c09b30502c5e3292d33634;hb=930b8f454a406e7f2159db6c423eb71eaf47f914;hp=c3c67cfd610aca0d97c1ef102d7594cd1798cee2;hpb=887fa121cb3ead452c683b8c38c6ccfeb8ed48fa;p=synfig.git 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 }