Re: Bug: Commit fails when no global email address is set even though --author is used
- From
Marcus Tillmanns <marcus.tillmanns@qt.io>
- Date
- Feb 9, 2024, 08:46 UTC
- Message-ID
- <26317088-7020-43EF-8B60-41D719A6D145@qt.io>
- In-Reply-To
- <3c3db003-1506-47c4-a010-a8b783dff959@app.fastmail.com>
Everything you said is true. But it misses the point.
If I try to commit for the first time, don’t want to set the global config, look at man git-commit and search for “author", it says “—author” to specify the author. Since “comitter” is such a hidden feature that even long time users of git don’t necessarily know about it, when I then specify “—author” and get the “same” error message again, I have no clue what’s going on, since I just specified my user name and email, and still I’m told it cannot be determined.
Show 7 quoted lines
> On 9. Feb 2024, at 09:37, Kristoffer Haugsbakk <code@khaugsbakk.name> wrote: > > On Fri, Feb 9, 2024, at 08:43, Marcus Tillmanns wrote: >> Uff, that’s a mean trap. Especially since there is no “—committer” >> option as far as I can see. > > Your report would have been more clear if you included the error:
Had I had any idea that the report was different between with / without —author I probably would have added it, or found out what the issue was.
Cheers, Marcus