Skip to content

Commit f57e528

Browse files
committed
scripts/sync-branch: Fix non-interactive merge
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
1 parent 9ba113b commit f57e528

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/sync-branch

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ fi
1010
tags_to_sync=("$@")
1111

1212
for tag_to_sync in "${tags_to_sync[@]}"; do
13-
if git merge --no-ff "$tag_to_sync"; then
13+
if git merge --no-edit --no-ff "$tag_to_sync"; then
1414
continue
1515
fi
1616

@@ -20,7 +20,9 @@ for tag_to_sync in "${tags_to_sync[@]}"; do
2020

2121
git checkout "$tag_to_sync" -- '.'
2222
git add --all
23-
git merge --continue
23+
24+
# Can't use --no-edit with --continue
25+
EDITOR=true git merge --continue
2426
done
2527

2628
# Check that every tag is in the branch.

0 commit comments

Comments
 (0)