git/list[1] front-page[2] threads[3] people[4] search[5] about
 

`BUG: sequencer.c:921: GIT_AUTHOR_DATE missing from author script` when trying to reword in interactive rebase

From
JKJonas Kittner <jonas.kittner@ruhr-uni-bochum.de>
Date
Nov 1, 2021, 23:17 UTC
Message-ID
<000201d7cf76$a4861460$ed923d20$@ruhr-uni-bochum.de>

Hello, I encountered the following bug and filled out the template provided with `git bugreport` below. Kind Regards, Jonas Kittner

Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)

In the interactive prompt I changed `pick` to `reword`, saved and closed the prompt. Commands to repoduce see below

```
root@135b2edea980:/# git init bug
Initialized empty Git repository in /bug/.git/
root@135b2edea980:/# cd bug/
root@135b2edea980:/bug# touch foo
root@135b2edea980:/bug# git add .
root@135b2edea980:/bug# git commit -m "foo"
[master (root-commit) 8fef261] foo
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 foo
root@135b2edea980:/bug# touch bar
root@135b2edea980:/bug# git add .
root@135b2edea980:/bug# git commit -m "bar"
[master 79a46e6] bar
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 bar
root@135b2edea980:/bug# git log --oneline
79a46e6 (HEAD -> master) bar
8fef261 foo
root@135b2edea980:/bug# git rebase --interactive
--committer-date-is-author-date 8fef261
BUG: sequencer.c:921: GIT_AUTHOR_DATE missing from author script
Aborted (core dumped)
root@135b2edea980:/bug# git --version
git version 2.33.1
```

What did you expect to happen? (Expected behavior) I expected to be able to reword the commit message like without passing the `--committer-date-is-author-date` argument.

What happened instead? (Actual behavior) segfault: `BUG: sequencer.c:921: GIT_AUTHOR_DATE missing from author script`

What's different between what you expected and what actually happened? wouldn't expect a segfault, but the option to be able to edit the commit message

Anything else you want to add: This was inside an ubuntu focal docker container, git was installed via the ppa ` ppa:git-core/ppa`

https://github.com/git/git/commit/7573cec52c0274ceb166c425be4288f6b3103d6f#d iff-0e574dc9087fc7831bbc1403545a8561f08869576c1ccc4146aa276146ff9777R888-R88 9 this seems to be not the case and needs to be handled differently I guess?

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.33.1 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 5.11.0-38-generic #42~20.04.1-Ubuntu SMP Tue Sep 28 20:41:07 UTC 2021 x86_64 compiler info: gnuc: 9.3 libc info: glibc: 2.31 $SHELL (typically, interactive shell): <unset>

[Enabled Hooks]
Next: Jeff King
Message 1 of 3 in “`BUG: sequencer.c:921: GIT_AUTHOR_DATE missing from author script` when trying to reword in interactive rebase”
  1. Jonas KittnerNov 1, 2021
  2. Jeff KingNov 2, 2021
  3. Phillip WoodNov 2, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.