Make sure the Git SHA always has a lenght of 7

This is or was the default, but for some reason we now sometimes see a
length of 9 on self-built versions, at least on Windows. So let's be
explict rather than relying on a default.
See https://musescore.org/en/node/152206#comment-699451
This commit is contained in:
Joachim Schmitz 2017-04-18 09:19:19 +02:00
parent 5a42b38334
commit 3ad1e3cd6c

View file

@ -2,6 +2,6 @@
# only do this for branch-level checkouts
case $3 in
1) git update-index --assume-unchanged mscore/revision.h
git rev-parse --short HEAD >mscore/revision.h
git rev-parse --short=7 HEAD >mscore/revision.h
;;
esac