From 300369d03cd2b84446facea20461ded5b3c92a86 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Thu, 2 Sep 2021 22:06:39 +0200 Subject: [PATCH] [checkupdates] cleanup old rebase before trying a new one --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d8f1f7b3d9..2fd8d9ae81 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -166,6 +166,8 @@ checkupdates_runner: - echo "${CHECKUPDATES_SSH_DEPLOY_KEY}" | tr -d '\r' | ssh-add - - url_host=$(echo "${CI_REPOSITORY_URL}" | sed -e 's|https\?://gitlab-ci-token:.*@|ssh://git@|g') - git remote set-url --push origin "${url_host}" + - git rebase --abort + - rm -fr ".git/rebase-apply" script: - fdroid checkupdates --allow-dirty --auto --commit ${CHECKUPDATES_APPIDS} 2>&1 | tee /tmp/out || true - git pull --rebase origin master