Merge branch 'sc/sequencer-gpg-octopus'
"git rebase --rebase-merges" did not correctly pass --gpg-sign command line option to underlying "git merge" when replaying a merge using non-default merge strategy or when replaying an octopus merge (because replaying a two-head merge with the default strategy was done in a separate codepath, the problem did not trigger for most users), which has been corrected. * sc/sequencer-gpg-octopus: t3435: add tests for rebase -r GPG signing sequencer: pass explicit --no-gpg-sign to merge sequencer: fix gpg option passed to merge subcommand
This commit is contained in:
@ -3677,7 +3677,9 @@ static int do_merge(struct repository *r,
|
||||
strvec_push(&cmd.args, "-F");
|
||||
strvec_push(&cmd.args, git_path_merge_msg(r));
|
||||
if (opts->gpg_sign)
|
||||
strvec_push(&cmd.args, opts->gpg_sign);
|
||||
strvec_pushf(&cmd.args, "-S%s", opts->gpg_sign);
|
||||
else
|
||||
strvec_push(&cmd.args, "--no-gpg-sign");
|
||||
|
||||
/* Add the tips to be merged */
|
||||
for (j = to_merge; j; j = j->next)
|
||||
|
Reference in New Issue
Block a user