From: Phillip Wood Date: Mon, 12 Oct 2020 19:26:57 GMT Subject: Re: [PATCH] sequencer: fix gpg option passed to octopus merge Message-ID: <865afe23-3e83-59a0-76ce-fee91f3fb554@gmail.com> In-Reply-To: On 12/10/2020 17:56, Junio C Hamano wrote: > Phillip Wood writes: > >> In run_git_commit() we do >> >> if (opts->gpg_sign) >> strvec_pushf(&cmd.args, "-S%s", opts->gpg_sign); >> else >> strvec_push(&cmd.args, "--no-gpg-sign"); >> >> I'm not immediately clear why we pass --no-gpg-sign when >> opts->gpg_sign isn't set ... > > Isn't it because there is a configuration that the &cmd may honor > that forces gpg signing all the time? Yes you're right, so we should be passing --no-gpg-sign here if opts->gpg_sign == NULL, otherwise `git merge` will still sign commits when it is run by `git rebase --no-gpg-sign` Best Wishes Phillip > >> but it makes me wonder if we should be doing >> that here as well > > Possibly. >