support/download: really, really make git archives reproducible
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 27 Feb 2016 22:03:15 +0000 (23:03 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 27 Feb 2016 22:13:55 +0000 (23:13 +0100)
commit87731820926cd6f51879d7b89687bfec2e615b3d
tree90ac7cfb39a19d8f6d032740a3a31d16fc993daa
parent7f3a52f981274da2db17500a0908466d6aed83c7
support/download: really, really make git archives reproducible

The way we use it, gzip will store the current time in the header, which
leads to unreproducible archives.

Fix that by telling gzip to not store the name and date of the file it
compresses, with the -n option. Since it compresses its stdin, there was
already no filename stored; now there's even no date stored.

Note: gzip has had -n since at least 1.2.4, released in 1993, so
virtually every gzip out there nowadays has it.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
support/download/git