summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-11-03 13:32:28 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-11-03 13:32:29 -0700
commit0cb1330bc6e71d5e489e98a596ffbc7a3fa36b18 (patch)
tree79b55b063e4056573d98010291f05381b984f899 /sequencer.c
parentMerge branch 'ds/add-rm-with-sparse-index' (diff)
parentrebase -i: fix rewording with --committer-date-is-author-date (diff)
downloadtgif-0cb1330bc6e71d5e489e98a596ffbc7a3fa36b18.tar.xz
Merge branch 'pw/rebase-r-fixes'
Regression fix. * pw/rebase-r-fixes: rebase -i: fix rewording with --committer-date-is-author-date
Diffstat (limited to 'sequencer.c')
-rw-r--r--sequencer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index cd2aabf1f7..ea96837cde 100644
--- a/sequencer.c
+++ b/sequencer.c
@@ -997,7 +997,9 @@ static int run_git_commit(const char *defmsg,
cmd.git_cmd = 1;
- if (is_rebase_i(opts) && !(!defmsg && (flags & AMEND_MSG)) &&
+ if (is_rebase_i(opts) &&
+ ((opts->committer_date_is_author_date && !opts->ignore_date) ||
+ !(!defmsg && (flags & AMEND_MSG))) &&
read_env_script(&cmd.env_array)) {
const char *gpg_opt = gpg_sign_opt_quoted(opts);