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

git archive --remote should generate tar.gz format indicated by -o filename

From
Ggit-scm@nuclearsunshine.com <git-scm@nuclearsunshine.com>
Date
Nov 18, 2017, 22:16 UTC
Message-ID
<1511043401.28381.11.camel@nuclearsunshine.com>

git archive -o name.tar.gz generates a gzipped file without needing an explicit --format switch.

However, git archive -o name.tar.gz --remote [url] generates a tar file, which is unexpected, bandwidth-heavier, and additionally in some cases it's not immediately obvious that this has happened.

git archive -o name.tar.gz --remote [url] --format tar.gz generates a gzipped file, so there's obviously no limitation with e.g. git-upload- archive.

Given the above, either git archive or git-upload-archive should apply the same tar.gz filename heuristic and generate the expected format.

Presumably e.g. tar.xz support when using --remote would be more problematic since, in the local case, it involves specifying an arbitrary command.

Message 1 of 1 in “git archive --remote should generate tar.gz format indicated by -o filename”
  1. git-scm@nuclearsunshine.comNov 18, 2017

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.