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

Can't get 'git archive' to work

From
YYuri <yuri@rawbw.com>
Date
Dec 7, 2015, 05:31 UTC
Message-ID
<5665199A.7070304@rawbw.com>
Getting the errors, see below.

Why "operation is not supported" through http and https? 'archive' is supposed to be the most efficient operation to get the specific snapshot of the repository, and it should be available without authentication.

In case of ssh with the key there is the strange error message about "core.gitProxy". What is this about? I am not using a proxy.

I couldn't get git archive to work even once.
# through ssh with an active ssh key
$ git archive --format=tar --remote=git@github.com:yurivict/vm-to-tor.git
Invalid command: 'git-upload-archive 'yurivict/vm-to-tor.git''
   You appear to be using ssh to clone a git:// URL.
   Make sure your core.gitProxy config option and the
   GIT_PROXY_COMMAND environment variable are NOT set.
fatal: The remote end hung up unexpectedly

# through ssh without an ssh key $ git archive --format=tar --remote=git@github.com:yurivict/vm-to-tor.git Permission denied (publickey). fatal: The remote end hung up unexpectedly

# through https $ git archive --format=tar --remote=https://github.com/yurivict/vm-to-tor.git fatal: Operation not supported by protocol.

# through http $ git archive --format=tar --remote=http://github.com/yurivict/vm-to-tor.git fatal: Operation not supported by protocol.

git-2.6.2 on FreeBSD 10.2
Yuri
Next: Jeff King
Message 1 of 2 in “Can't get 'git archive' to work”
  1. YuriDec 7, 2015
  2. Jeff KingDec 7, 2015

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.