X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Fbuild_tools%2Fautorevision.sh;h=517732b817548dd25a5b5ffa8f2352b267d0d50d;hb=fb6e5f95daa50b3b2ac495dda529d28d1553fa29;hp=d8a5c8b0ac50296de0518955262158ec4f8d2193;hpb=8eb45e8598cf93040f6db2747c23432f20ab26c1;p=synfig.git diff --git a/synfig-studio/build_tools/autorevision.sh b/synfig-studio/build_tools/autorevision.sh index d8a5c8b..517732b 100644 --- a/synfig-studio/build_tools/autorevision.sh +++ b/synfig-studio/build_tools/autorevision.sh @@ -15,7 +15,7 @@ get_git_id(){ export SCM=git - export REVISION_ID=`cd "$1"; git log --no-color -1 | head -n 1 | cut -f 2 -d ' '` + export REVISION_ID=`cd "$1"; git log --no-color -1 | head -n 1 | cut -f 2 -d ' ' | cut -c -6` export BRANCH="`cd "$1"; git branch -a --no-color --contains HEAD | sed -e s/\*\ // | sed -e s/\(no\ branch\)// | tr '\n' ' ' | tr -s ' ' | sed s/^' '//`" if ( echo $BRANCH | egrep origin/master > /dev/null ); then #give a priority to master branch