drm/ci: remove rebase-merge directory
Subsystems (4)
PATCH 1/1 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 <[email protected]>
Signed-off-by Dmitry Baryshkov <[email protected]>
--- drivers/gpu/drm/ci/build.sh | 3 +++ 1 file changed, 3 insertions(+)
drivers/gpu/drm/ci/build.sh +3 -0
@@ -58,6 +58,9 @@ git config --global user.email "[email protected]" 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
Signature · 1 line
2.39.2
Quoted 7 lines · Dmitry Baryshkov
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 <[email protected]>Signed-off-by Dmitry Baryshkov <[email protected]>
Acked-by Helen Koike <[email protected]>
Thanks!
Helen
Quoted 18 lines
--- drivers/gpu/drm/ci/build.sh | 3 +++ 1 file changed, 3 insertions(+)drivers/gpu/drm/ci/build.sh +3
-0@@ -58,6 +58,9 @@ git config --global user.email "[email protected]" 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