List for cgit developers and users
 help / color / mirror / Atom feed
* cgit archives and git get-tar-commit-id
       [not found] <AANLkTimP0Z6KPB2d36Oa2uc8QuWD1Nmudsa1E8vVMFGV@mail.gmail.com>
@ 2011-03-26 11:57 ` hjemli
  0 siblings, 0 replies; only message in thread
From: hjemli @ 2011-03-26 11:57 UTC (permalink / raw)


[ added cgit list to CC]

On Mon, Mar 21, 2011 at 16:57, Hrvoje Nik?i? <hniksic at gmail.com> wrote:
> git archive has a cool feature that it encodes the commit SHA1 in the
> header of the tar file. This header can be retrieved using git
> get-tar-commit-id (or simply with "strings"), yet it is completely
> ignored by tar -x. In archives created by cgit, this is not used
> because cgit fails to specify commit_sha1 in the archiver args. This
> patch changes cgit to specify the sha1 so that it gets stored in the
> tar file header.

Thanks. I like the idea, but there's a downside - it will change the
fingerprint of archives generated by cgit.

Some cgit-generated tarballs are used as package sources in some
distros, and with this change those tarballs will suddenly get new
checksums. This has happened once before, when cgit started to
generate tarballs with a more sane directory prefix, and it caused
some dismay.

On the other hand, the checksum of a cgit-generated archive is
fundamentally unpredictable, since it will be influenced by things out
of our control (e.g. which gzip-version was installed when the archive
was generated), so it might not be such a big deal after all.

Opinions?

--
larsh




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-26 11:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <AANLkTimP0Z6KPB2d36Oa2uc8QuWD1Nmudsa1E8vVMFGV@mail.gmail.com>
2011-03-26 11:57 ` cgit archives and git get-tar-commit-id hjemli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).