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

Re: git-archive fails against smart-http repos

From
Jeff King <peff@peff.net>
Date
Jan 11, 2013, 20:58 UTC
Message-ID
<20130111205849.GA17810@sigill.intra.peff.net>
In-Reply-To
<6014ED12-17F9-4D57-927F-6AFCD8A51C9D@apple.com>
On Wed, Jan 09, 2013 at 10:52:48AM -0800, Bruce Lysik wrote:
Show 7 quoted lines
> Trying to run git-archive fails against smart-http based repos.  Example:
> 
> $ git archive --verbose --format=zip --remote=http://code.toofishes.net/git/dan/initscripts.git
> fatal: Operation not supported by protocol.
> Unexpected end of command stream
> 
> This problem was brought up against my internal repos as well.

Right. Neither the client nor server for the http transport knows how to handle the "git-upload-archive" service (as opposed to the regular "git-upload-pack" or "git-receive-pack" services). I don't think there's anything technical standing in the way; it is has simply never been implemented.

Currently, you can do remote git-archive only locally, via ssh, or over git:// (but then only if the server side has explicitly enabled it).

Patches welcome.
-Peff
Previous: Bruce Lysik
Message 2 of 2 in “git-archive fails against smart-http repos”
  1. Bruce LysikJan 9, 2013
  2. Jeff KingJan 11, 2013

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.