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

Re: git fast-import not verifying commit author lines?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Dec 22, 2009, 15:06 UTC
Message-ID
<20091222150649.GI10687@spearce.org>
In-Reply-To
<4B304987.7030201@facebook.com>
David Reiss <dreiss@facebook.com> wrote:
Show 22 quoted lines
> mtn git_export produces this output on a simple repo:
> 
> blob
> mark :1
> data 8
> content
> 
> commit refs/heads/com.example.badexport
> mark :2
> author <somename> 1261454209 +0000
> committer <somename> 1261454209 +0000
> data 8
> acommit
> 
> M 100644 :1 "afile"
> progress revision 9b0e11e4d66eba8a3cf26095fb573116b886cd37 (1/1)
> #############################################################
> 
> The author and committer lines are missing the names (I've filed this as a
> bug with monotone).  git commit-tree refuses to to produce a commit object
> like this, so it seems like git fast-import should detect and report this
> instead of silently writing the invalid commit object to the repository.
Nope.

These objects can still be processed by git commands, you just can't normally create them with Git tools. To some extent fast-import allows the caller to import data that you wouldn't otherwise create in Git because we know you are coming from a foreign system where the data might not reasonably exist.

-- 
Shawn.
Previous: David ReissNext: David Reiss
Message 2 of 5 in “git fast-import not verifying commit author lines?”
  1. David ReissDec 22, 2009
  2. Shawn O. PearceDec 22, 2009
  3. David ReissDec 30, 2009
  4. fast-import: Document author/committer/tagger name is optionalShawn O. Pearce, Dec 30, 2009
  5. Junio C HamanoDec 31, 2009

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.