X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fbuild_tools%2Fautorevision.sh;h=0402507eb6287989a7c09b30502c5e3292d33634;hb=f0d845c8781d4f4fea73ce830b5de7c115638d30;hp=ec7ec8d7e127ca49a1be5908ee8ca09b437c9b31;hpb=3624aac2a6e2dc3824ae22e99e2608f93f285e61;p=synfig.git diff --git a/synfig-studio/trunk/build_tools/autorevision.sh b/synfig-studio/trunk/build_tools/autorevision.sh index ec7ec8d..0402507 100644 --- a/synfig-studio/trunk/build_tools/autorevision.sh +++ b/synfig-studio/trunk/build_tools/autorevision.sh @@ -16,10 +16,14 @@ get_git_svn_id(){ export SCM=git-svn export REVISION=`cd "$1"; git svn find-rev HEAD` - export COMPARE="$1/.git/svn" + export COMPARE="$1/.git/" 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 }