Skip to content

rebase --root: fix reword on a root commit#511

Closed
dscho wants to merge 2 commits intogit:masterfrom
dscho:reword-root-commit
Closed

rebase --root: fix reword on a root commit#511
dscho wants to merge 2 commits intogit:masterfrom
dscho:reword-root-commit

Conversation

@dscho
Copy link
Copy Markdown
Member

@dscho dscho commented Jun 16, 2018

Todd Zullinger reported this bug in https://public-inbox.org/git/20180615043111.GS3094@zaya.teonanacatl.net/: when calling git rebase --root and trying to reword the root commit's message, a BUG is reported.

This fixes that.

IMO the bug fix is trivial enough to qualify for inclusion into v2.18.0, still.

tmzullinger and others added 2 commits June 16, 2018 21:03
When splitting a repository, running `git rebase -i --root` to reword
the initial commit, Git dies with

	BUG: sequencer.c:795: root commit without message.

Signed-off-by: Todd Zullinger <tmz@pobox.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
The code path that triggered that "BUG" really does not want to run
without an explicit commit message. In the case where we want to amend a
commit message, we have an *implicit* commit message, though: the one of
the commit to amend. Therefore, this code path should not even be
entered.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
@dscho
Copy link
Copy Markdown
Member Author

dscho commented Jun 16, 2018

Continuing here: gitgitgadget#3

@dscho dscho closed this Jun 16, 2018
@dscho dscho deleted the reword-root-commit branch June 24, 2018 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants