diff --git a/modules/jenkins/files/slave_scripts/gerrit-git-prep.sh b/modules/jenkins/files/slave_scripts/gerrit-git-prep.sh index 615ff8a417..11bd728768 100755 --- a/modules/jenkins/files/slave_scripts/gerrit-git-prep.sh +++ b/modules/jenkins/files/slave_scripts/gerrit-git-prep.sh @@ -33,6 +33,7 @@ then fi git remote set-url origin $GERRIT_SITE/p/$ZUUL_PROJECT git remote update || git remote update # attempt to work around bug #925790 +git fetch --tags origin git reset --hard git clean -x -f -d -q