gitlab-ci: fetch before checkout

This commit is contained in:
Antoine Martin 2023-05-07 19:39:05 -04:00
parent 5bfd393f30
commit 625f30ccbe
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -24,6 +24,7 @@ echo "REPODEST=$HOME/repo-apk" >> $HOME/.abuild/abuild.conf
doas cp $HOME/.abuild/$ABUILD_KEY_NAME.rsa.pub /etc/apk/keys/.
if [ -d $HOME/repo-apk ]; then
git -C $HOME/repo-apk fetch
git -C $HOME/repo-apk checkout $BASEBRANCH
git -C $HOME/repo-apk pull --rebase
else