From: Fraser Tweedale <frase@frase.id.au>
To: git@vger.kernel.org
Cc: Fraser Tweedale <frase@frase.id.au>
Subject: [PATCH] supply '-n' to gzip to produce identical tarballs
Date: Sun, 10 Apr 2011 16:12:16 +1000 [thread overview]
Message-ID: <1302415936-7362-1-git-send-email-frase@frase.id.au> (raw)
Without the '-n' ('--no-name') argument, gzip includes timestamp in
output which results in different files. Important systems like FreeBSD
ports and perhaps many others hash/checksum downloaded files to ensure
integrity. For projects that do not release official archives, gitweb's
snapshot feature would be an excellent stand-in but for the fact that the
files it produces are not identical.
Supply '-n' to gzip to exclude timestamp from output and produce idential
output every time.
Signed-off-by: Fraser Tweedale <frase@frase.id.au>
---
gitweb/gitweb.perl | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 46186ab..2ab08da 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -186,7 +186,7 @@ our %known_snapshot_formats = (
'type' => 'application/x-gzip',
'suffix' => '.tar.gz',
'format' => 'tar',
- 'compressor' => ['gzip']},
+ 'compressor' => ['gzip', '-n']},
'tbz2' => {
'display' => 'tar.bz2',
--
1.7.4.3
next reply other threads:[~2011-04-10 6:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-10 6:12 Fraser Tweedale [this message]
2011-04-10 7:38 ` [PATCH] supply '-n' to gzip to produce identical tarballs Jakub Narebski
2011-04-10 10:13 ` Fraser Tweedale
2011-04-10 13:55 ` Jakub Narebski
2011-04-11 19:24 ` Junio C Hamano
2011-04-11 20:59 ` Fraser Tweedale
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1302415936-7362-1-git-send-email-frase@frase.id.au \
--to=frase@frase.id.au \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).