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

Re: Passing commit IDs to git-archive

From
SBStephen Bash <bash@genarts.com>
Date
Mar 12, 2012, 13:24 UTC
Message-ID
<57b23100-a04d-4eca-bb0e-35455464ec5c@mail>
In-Reply-To
<20120312114742.GC12921@sigill.intra.peff.net>
----- Original Message -----
Show 17 quoted lines
> From: "Jeff King" <peff@peff.net>
> Sent: Monday, March 12, 2012 7:47:42 AM
> Subject: Re: Passing commit IDs to git-archive
> 
> On Fri, Mar 09, 2012 at 05:14:05PM -0500, Stephen Bash wrote:
> 
> > on Mac OS 10.6.8 (obviously this is local testing, the goal is to
> > use ssh remotely).  After parsing the error "no such ref" I
> > attempted the same operation using master as the tree-ish and
> > archive worked as expected (either specifying the path separately or
> > using the colon syntax to reference the tree directly).  Is there a
> > reason git-archive requires a named ref rather than just a commit
> > (or tree) ID?
> 
> Yes; generally git repositories do not allow clients to access
> arbitrary sha1s. Instead, they require that the requested objects be
> accessible by a ref.
Jeff: thanks for the concise summary.  I thought that might be the case, but wanted to confirm.
Junio and René: thanks for the input and ideas. Seems I'll be investigating my options today.

Thanks, Stephen

Previous: Jeff King
Message 5 of 5 in “Passing commit IDs to git-archive”
  1. Stephen BashMar 9, 2012
  2. Junio C HamanoMar 9, 2012
  3. René ScharfeMar 10, 2012
  4. Jeff KingMar 12, 2012
  5. Stephen BashMar 12, 2012

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.