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

Re: Anonymous commit (empty Author and Committer)

From
Jeff King <peff@peff.net>
Date
Oct 30, 2015, 17:01 UTC
Message-ID
<20151030170102.GA32384@sigill.intra.peff.net>
In-Reply-To
<56337DF8.5050802@gmail.com>
On Fri, Oct 30, 2015 at 05:26:00PM +0300, Andrei Borzenkov wrote:
> See http://git.savannah.gnu.org/cgit/grub.git/commit/?id=206676601eb853fc319df14cd3398fbdfde665ac
> 
> I was not even aware that this is possible. Is there anything on server side
> that can prevent it?

I would have thought that receive.fsckObjects would reject it, but seems that git-fsck does not complain about it at all, as it is otherwise syntactically valid (a space separating the zero-length name from the email, and <> surrounding the empty email).

We do complain during "git commit" about an empty name. We don't seem to do so for blank emails, though. The only discussion I could find mentions that should probably disallow both[1].

I wonder how this commit was created in the first place (through git-commit, and we have an empty-name case that is not covered, or using a lower-level tool that bypasses the checks).

-Peff
[1] http://article.gmane.org/gmane.comp.version-control.git/261237
Previous: Konstantin KhomoutovNext: Balaco Baco
Message 3 of 15 in “Anonymous commit (empty Author and Committer)”
  1. Andrei BorzenkovOct 30, 2015
  2. Konstantin KhomoutovOct 30, 2015
  3. Jeff KingOct 30, 2015
  4. Balaco BacoOct 30, 2015
  5. Vladimir 'φ-coder/phcoder' SerbinenkoOct 30, 2015
  6. Vladimir 'φ-coder/phcoder' SerbinenkoOct 30, 2015
  7. Lennart SorensenOct 30, 2015
  8. Kaz KylhekuOct 30, 2015
  9. Andreas SchwabOct 31, 2015
  10. Andrei BorzenkovOct 31, 2015
  11. Andrei BorzenkovOct 31, 2015
  12. Lennart SorensenNov 2, 2015
  13. Kaz KylhekuNov 2, 2015
  14. Junio C HamanoNov 2, 2015
  15. Andrei BorzenkovOct 31, 2015

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.