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

signed-off-by not overwritten with GIT_AUTHOR_NAME...?

From
MBMatthias Beyer <mail@beyermatthias.de>
Date
Apr 7, 2021, 13:42 UTC
Message-ID
<20210407134201.kxijiev5sn346bsy@hoshi>
Hi,

I just found that overwriting the GIT_AUTHOR_EMAIL and GIT_AUTHOR_NAME env variables does alter the author when committing, but does not overwrite the --signoff entry. Is this intentional?

To reproduce:
    cd /tmp
    mkdir foo
    cd foo
    git init
    touch foo
    git add foo
    GIT_AUTHOR_EMAIL=nobody@nomail.de GIT_AUTHOR_NAME="Someone Else" git commit -s -m test
    git show
I'm tested this for 2.29.3 and 2.29.2.

The manpage (2.29.3) does not say anything related to that under the `--signoff` entry, nor under the `COMMIT INFORMATION` section!

If this is a bug, I'd love to contribute a patch, if someone can take my hand and guide me to the right places!

Please keep me in CC, I'm not subscribed.
-- 
Matthias
Next: Taylor Blau
Message 1 of 3 in “signed-off-by not overwritten with GIT_AUTHOR_NAME...?”
  1. Matthias BeyerApr 7, 2021
  2. Taylor BlauApr 7, 2021
  3. Matthias BeyerApr 7, 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.