Skip to content

Commit 1791670

Browse files
committed
fix(ci): apply fork state for unstable builds
1 parent ec69f25 commit 1791670

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

unstable-build.sh

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ fi
5050
UNSTABLE_SHORT_SHA=$(git rev-parse --short=8 "${UNSTABLE_COMMIT}")
5151
UNSTABLE_DATE=$(TZ=UTC git log -1 --format=%cd --date=format-local:%Y%m%d "${UNSTABLE_COMMIT}")
5252
UNSTABLE_NAME="MiSTer_unstable_${UNSTABLE_DATE}_${UNSTABLE_SHORT_SHA}"
53-
FORK_COMMITS=$(git rev-list --reverse --no-merges "${UPSTREAM_REF}..${FORK_HEAD}")
5453

5554
if [ -n "${METADATA_FILE}" ]; then
5655
cat >"${METADATA_FILE}" <<EOF
@@ -75,10 +74,7 @@ trap cleanup EXIT
7574

7675
echo "==> Building from upstream ${UNSTABLE_NAME} with Zaparoo ${FORK_SHORT_SHA}"
7776
git worktree add --detach "${TMP_WORKTREE}" "${UNSTABLE_COMMIT}" >/dev/null
78-
79-
if [ -n "${FORK_COMMITS}" ]; then
80-
git -C "${TMP_WORKTREE}" cherry-pick --no-commit ${FORK_COMMITS}
81-
fi
77+
git -C "${TMP_WORKTREE}" merge --no-edit -Xignore-all-space "${FORK_HEAD}"
8278

8379
"${TMP_WORKTREE}/docker-build.sh" "$@"
8480

0 commit comments

Comments
 (0)