# git-archive fails against smart-http repos

2 messages from 2013-01-09 to 2013-01-11. Participants: Bruce Lysik, Jeff King.
Thread: https://gitlist.dev/t/32578

## Bruce Lysik, 2013-01-09 18:52

Subject: git-archive fails against smart-http repos
Message-ID: <6014ED12-17F9-4D57-927F-6AFCD8A51C9D@apple.com>
URL: https://gitlist.dev/e/6014ED12-17F9-4D57-927F-6AFCD8A51C9D%40apple.com

```
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, 2013-01-11 20:58

Subject: Re: git-archive fails against smart-http repos
Message-ID: <20130111205849.GA17810@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20130111205849.GA17810%40sigill.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:

> 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

```
