CI: added --force to git tags --fetch

needed for new git version after server upgrade
This commit is contained in:
Andrew Tridgell 2024-03-23 08:55:57 +11:00
parent 663a41a1f0
commit 4ba151151c

View File

@ -8,7 +8,7 @@ cd $HOME/APM || exit 1
test -n "$FORCEBUILD" || {
(cd APM && git fetch > /dev/null 2>&1)
newtags=$(cd APM && git fetch --tags | wc -l)
newtags=$(cd APM && git fetch --tags --force | wc -l)
oldhash=$(cd APM && git rev-parse origin/master)
newhash=$(cd APM && git rev-parse HEAD)