diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-06-18 11:23:22 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-18 11:23:22 -0700 |
commit | f300f5681e88fdf1058139100cbb8f990f5029c5 (patch) | |
tree | bb7801bfa5b0e2b629ba9e3607c1f9049e74091a /sequencer.c | |
parent | Merge branch 'jk/ewah-bounds-check' (diff) | |
parent | rebase --root: fix amending root commit messages (diff) | |
download | tgif-f300f5681e88fdf1058139100cbb8f990f5029c5.tar.xz |
Merge branch 'js/rebase-i-root-fix'
A regression to "rebase -i --root" introduced during this cycle has
been fixed.
* js/rebase-i-root-fix:
rebase --root: fix amending root commit messages
rebase --root: demonstrate a bug while amending root commit messages
Diffstat (limited to 'sequencer.c')
-rw-r--r-- | sequencer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c index cca968043e..4034c0461b 100644 --- a/sequencer.c +++ b/sequencer.c @@ -784,7 +784,7 @@ static int run_git_commit(const char *defmsg, struct replay_opts *opts, struct child_process cmd = CHILD_PROCESS_INIT; const char *value; - if (flags & CREATE_ROOT_COMMIT) { + if ((flags & CREATE_ROOT_COMMIT) && !(flags & AMEND_MSG)) { struct strbuf msg = STRBUF_INIT, script = STRBUF_INIT; const char *author = is_rebase_i(opts) ? read_author_ident(&script) : NULL; |