summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ci
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>2023-12-02 23:13:53 +0100
committerRob Clark <robdclark@chromium.org>2023-12-10 20:47:28 +0100
commit236fa3873de8f1d4b0c7eaeb4c53b4d1220d55a0 (patch)
tree7eb3368366ee26a8e060a2318a82580c1c330ed4 /drivers/gpu/drm/ci
parentdrm/msm/gem: Convert to drm_exec (diff)
downloadlinux-236fa3873de8f1d4b0c7eaeb4c53b4d1220d55a0.tar.xz
linux-236fa3873de8f1d4b0c7eaeb4c53b4d1220d55a0.zip
drm/ci: remove rebase-merge directory
Gitlab runner can cache git repository, including the unfinished rebase merge status. New CI job will come as a fresh checkout, however this will not destroy the unfinished rebase, failing our build script. Destroy the unfinished rebase state. Suggested-by: David Heidelberg <david.heidelberg@collabora.com> Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Acked-by: Helen Koike <helen.koike@collabora.com> Patchwork: https://patchwork.freedesktop.org/patch/570159/ Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/ci')
-rw-r--r--drivers/gpu/drm/ci/build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/ci/build.sh b/drivers/gpu/drm/ci/build.sh
index e5c5dcedd108..ca2923ed2290 100644
--- a/drivers/gpu/drm/ci/build.sh
+++ b/drivers/gpu/drm/ci/build.sh
@@ -58,6 +58,9 @@ git config --global user.email "fdo@example.com"
git config --global user.name "freedesktop.org CI"
git config --global pull.rebase true
+# cleanup git state on the worker
+rm -rf .git/rebase-merge
+
# Try to merge fixes from target repo
if [ "$(git ls-remote --exit-code --heads ${UPSTREAM_REPO} ${TARGET_BRANCH}-external-fixes)" ]; then
git pull ${UPSTREAM_REPO} ${TARGET_BRANCH}-external-fixes