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

fast-import fails in read-only tree

From
SMStefan Monnier <monnier@iro.umontreal.ca>
Date
Jan 28, 2016, 22:17 UTC
Message-ID
<jwvfuxhz72e.fsf-monnier+gmane.comp.version-control.git@gnu.org>

I recently discovered that "git fast-import" signals an error if used in a tree to which we do not have write-access, because it tries to create a "objects/pack/tmp_pack_XXX" file even before starting to process the commands.

Usually this is not a problem (we'll create new commits and such, so write-access is indeed necessary), but in my case I was using fast-import only for its "reading" operations (in order to combine several inter-dependent "cat-file" operations into a single git session).

        Stefan
Next: Jeff King
Message 1 of 6 in “fast-import fails in read-only tree”
  1. Stefan MonnierJan 28, 2016
  2. Jeff KingJan 29, 2016
  3. Stefan MonnierJan 29, 2016
  4. Jeff KingJan 30, 2016
  5. Andreas SchwabJan 30, 2016
  6. Stefan MonnierJan 30, 2016

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.