summaryrefslogtreecommitdiff
path: root/sequencer.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2018-06-18 18:23:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-18 18:23:22 (GMT)
commitf300f5681e88fdf1058139100cbb8f990f5029c5 (patch)
treebb7801bfa5b0e2b629ba9e3607c1f9049e74091a /sequencer.c
parentf35f43f565c99d5cbbac210b82448d9f445c9607 (diff)
parent76fda6ebbc721e39ed70625206ba1dab5a9c1340 (diff)
downloadgit-f300f5681e88fdf1058139100cbb8f990f5029c5.zip
git-f300f5681e88fdf1058139100cbb8f990f5029c5.tar.gz
git-f300f5681e88fdf1058139100cbb8f990f5029c5.tar.bz2
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sequencer.c b/sequencer.c
index cca9680..4034c04 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;