Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
dscho wants to merge 2 commits intogit:mastergit/git:masterfrom
dscho:reword-root-commitdscho/git:reword-root-commitCopy head branch name to clipboard
Closed

rebase --root: fix reword on a root commit#511
dscho wants to merge 2 commits intogit:mastergit/git:masterfrom
dscho:reword-root-commitdscho/git:reword-root-commitCopy head branch name to clipboard

Conversation

@dscho
Copy link
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
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.