scripts/sync-branch: Fix non-interactive merge

Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
Paweł Gronowski
2026-07-09 16:51:33 +02:00
parent 9ba113bc5d
commit f57e528457
+4 -2
View File
@@ -10,7 +10,7 @@ fi
tags_to_sync=("$@")
for tag_to_sync in "${tags_to_sync[@]}"; do
if git merge --no-ff "$tag_to_sync"; then
if git merge --no-edit --no-ff "$tag_to_sync"; then
continue
fi
@@ -20,7 +20,9 @@ for tag_to_sync in "${tags_to_sync[@]}"; do
git checkout "$tag_to_sync" -- '.'
git add --all
git merge --continue
# Can't use --no-edit with --continue
EDITOR=true git merge --continue
done
# Check that every tag is in the branch.