MuseScore/build/git/hooks/post-checkout
Joachim Schmitz 3ad1e3cd6c 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
2017-04-18 09:19:19 +02:00

7 lines
191 B
Bash
Executable file

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