All of lore.kernel.org
 help / color / mirror / Atom feed
* git archive -o something.tar.zst but file info just says "POSIX tar archive"
@ 2021-10-10 11:19 Bagas Sanjaya
  2021-10-10 11:40 ` SZEDER Gábor
  0 siblings, 1 reply; 3+ messages in thread
From: Bagas Sanjaya @ 2021-10-10 11:19 UTC (permalink / raw)
  To: Git Users

Hi,

I noticed the following (possible bug?) when I tried to create zstd tar 
archive (.tar.zst) with `git archive`.

First, I created the plain tar archive with `git archive`, then extract 
and rearchive to zstd tar achive:

```
(on the repo)

$ git archive -o /tmp/something.tar --prefix=something/ HEAD

(outside the repo, on /tmp)

$ tar xvf something.tar
$ tar --zstd -c -v -f something.tar.zst something/
```

I checked that the archive was indeed zstd tar archive:

```
$ file something.tar.zst
something.tar.zst: Zstandard compressed data (v0.8+), Dictionary ID: None
```

Now I created the same archive with `git archive` directly:

```
(on the repo)

$ 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.

-- 
An old man doll... just what I always wanted! - Clara

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-11  6:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-10 11:19 git archive -o something.tar.zst but file info just says "POSIX tar archive" Bagas Sanjaya
2021-10-10 11:40 ` SZEDER Gábor
2021-10-11  6:43   ` Bagas Sanjaya

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.