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

Re: git archive -o something.tar.zst but file info just says "POSIX tar archive"

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Oct 10, 2021, 11:40 UTC
Message-ID
<20211010114025.GA571180@szeder.dev>
In-Reply-To
<e50a85f1-7be2-dab9-a453-fb93bdb71f3c@gmail.com>
On Sun, Oct 10, 2021 at 06:19:53PM +0700, Bagas Sanjaya wrote:
> I noticed the following (possible bug?) when I tried to create zstd tar
> archive (.tar.zst) with `git archive`.
Show 13 quoted lines
> $ git archive -o /tmp/something1.tar.zst --prefix=something/ HEAD
> ```
> 
> But that archive info (with `file`) was something different:
> 
> ```
> (outside the repo, on /tmp)
> $ file something1.tar.zst
> something1.tar.zst: POSIX tar archive
> ```
> 
> I expected that `something1.tar.zst` was proper zstd tar archive, and not
> plain archive like above.
  $ git archive -h |grep -e ' -l'
      -l, --list            list supported archive formats
  $ git archive -l
  tar
  tgz
  tar.gz
  zip
Does it list zstd among the supported formats on your machine?
Previous: Bagas SanjayaNext: Bagas Sanjaya
Message 2 of 3 in “git archive -o something.tar.zst but file info just says "POSIX tar archive"”
  1. Bagas SanjayaOct 10, 2021
  2. SZEDER GáborOct 10, 2021
  3. Bagas SanjayaOct 11, 2021

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.