threads / discuss / 32578

git-archive fails against smart-http repos

Subject: git-archive fails against smart-http repos

## tl;dr

2 messages between Jan 9, 2013 and Jan 11, 2013.

replies: 1people: 2as markdown or json

Bruce Lysik· Jan 9, 2013, 18:52 UTC · lore
Hi,
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.
Jeff King· Jan 11, 2013, 20:58 UTC · re: Bruce Lysik · lore

Re: git-archive fails against smart-http repos

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

← back to recent threads