]> Lady’s Gitweb - Gitweb/commit
gitweb: supply '-n' to gzip for identical output
authorFraser Tweedale <redacted>
Tue, 26 Apr 2011 01:32:00 +0000 (11:32 +1000)
committerLady <redacted>
Mon, 6 Apr 2026 04:51:30 +0000 (00:51 -0400)
commite515cb0a891d9715be2a4ca2d401461398f718fa819d63b51348c18095c09c97
treeede66bdc8c5d1da2a55943050617b0c0100171662616580ebcf77a4aa849be4f
parent0738bcc36a05cf46cff8d75ea3803f74436570679c4b6d89875354390e2a39a3
gitweb: supply '-n' to gzip for identical output

For projects that do not release official archives, gitweb's snapshot
feature would be an excellent alternative, and but without the '-n'
('--no-name') argument, gzip includes a timestamp in output which results
in different files.  Because some systems hash/checksum downloaded files
to ensure integrity of the tarball (e.g FreeBSD), it is desirable to
produce tarballs in a reproducible way for that purpose.

Whilst '--no-name' is more descriptive, the long version of the flag is
not supported on all systems.  In particular, OpenBSD does not appear to
support it.

Supply '-n' to gzip to exclude timestamp from output and produce idential
output every time.

Signed-off-by: Fraser Tweedale <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.020103 seconds and 4 git commands to generate.