From 63d36bf1ca75a6bdf52ba582860c8a4333748741 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Thu, 9 Nov 2023 10:57:23 +0100 Subject: [PATCH] fixup! add merge group CI_BASE_BRANCH/COMMIT extraction --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index c6e297f..6e10b4f 100755 --- a/build.sh +++ b/build.sh @@ -49,7 +49,7 @@ handle_merge_queue_build() { # Set CI_BASE_COMMIT in case of a merge queue build. if test -z "${CI_BASE_COMMIT}"; then - previous_merge="$(git merge-base ${CI_BASE_BRANCH} HEAD)" + previous_merge="$(git -C ${repo_dir} merge-base ${CI_BASE_BRANCH} HEAD)" export CI_BASE_COMMIT="${previous_merge}" fi