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
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user