{"thread":{"id":"48715","subject":"BUG: sequencer.c:795: root commit without message -- when rewording root commit","startedAt":"2018-06-15T04:31:17Z","lastAt":"2018-06-15T04:31:17Z","messageCount":1,"participants":["Todd Zullinger"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"350230","messageId":"20180615043111.GS3094@zaya.teonanacatl.net","threadId":"48715","inReplyTo":null,"subject":"BUG: sequencer.c:795: root commit without message -- when rewording root commit","fromName":"Todd Zullinger","fromEmail":"tmz@pobox.com","sentAt":"2018-06-15T04:31:11Z","receivedAt":"2018-06-15T04:31:17Z","isPatch":false,"sender":{"key":"tmz@pobox.com","avatar":"https://avatars.githubusercontent.com/u/806319?v=4"},"body":"Hi Johannes,\n\nI was splitting a repository tonight and ran 'rebase -i\n--root' to reword the initial commit. Then git died with\n'BUG: sequencer.c:795: root commit without message.'\n\nA simple test case to show the failure:\n\n-- >8 --\ndiff --git a/t/t3404-rebase-interactive.sh b/t/t3404-rebase-interactive.sh\nindex 59c766540..bc5e228b8 100755\n--- a/t/t3404-rebase-interactive.sh\n+++ b/t/t3404-rebase-interactive.sh\n@@ -971,6 +971,14 @@ test_expect_success 'rebase -i --root fixup root commit' '\n \ttest 0 = $(git cat-file commit HEAD | grep -c ^parent\\ )\n '\n \n+test_expect_success 'rebase -i --root reword root commit' '\n+\ttest_when_finished \"test_might_fail git rebase --abort\" &&\n+\tgit checkout -b reword-root-branch master &&\n+\tset_fake_editor &&\n+\tFAKE_LINES=\"reword 1 2\" FAKE_COMMIT_MESSAGE=\"A changed\" git rebase -i --root &&\n+\tgit show HEAD^ | grep \"A changed\"\n+'\n+\n test_expect_success C_LOCALE_OUTPUT 'rebase --edit-todo does not work on non-interactive rebase' '\n \tgit reset --hard &&\n \tgit checkout conflict-branch &&\n-- >8 --\n\nNot surprisingly (among the commits which changed between\n2.17.1 and 2.18.0-rc2, at least), git bisect points to\n21d0764c82 (\"rebase -i --root: let the sequencer handle even\nthe initial part\", 2018-05-04).  With luck, the fix will be\nobvious to trained eyes and can be added before 2.18.0. :)\n\nThanks,\n\n-- \nTodd\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nAll decent people live beyond their incomes nowadays, and those who\naren't respectable live beyond other peoples'.\n    -- Saki\n\n"}]}