gitlab-ci: fetch before checkout
This commit is contained in:
parent
5bfd393f30
commit
625f30ccbe
1 changed files with 1 additions and 0 deletions
|
@ -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/.
|
doas cp $HOME/.abuild/$ABUILD_KEY_NAME.rsa.pub /etc/apk/keys/.
|
||||||
|
|
||||||
if [ -d $HOME/repo-apk ]; then
|
if [ -d $HOME/repo-apk ]; then
|
||||||
|
git -C $HOME/repo-apk fetch
|
||||||
git -C $HOME/repo-apk checkout $BASEBRANCH
|
git -C $HOME/repo-apk checkout $BASEBRANCH
|
||||||
git -C $HOME/repo-apk pull --rebase
|
git -C $HOME/repo-apk pull --rebase
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue