Skip to content

Commit 9aa6784

Browse files
committed
Avoid recording gzip creation time in mirror.sh
1 parent 30bf5be commit 9aa6784

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mirror.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,11 @@ do_file() {
162162

163163
(
164164
cd "${outdir}" || exit
165-
git config tar.tar.gz.command gzip
165+
# Some versions of git by default use the internal gzip
166+
# implementation, others use external gzip; standardize this
167+
# -n is used for older versions of git that record gzip creation
168+
# date/time
169+
git config tar.tar.gz.command "gzip -n"
166170
# -T1 avoids non-determinism due to threading
167171
# This may not be correct for forges other than Savannah
168172
git config tar.tar.xz.command "xz -T1"

0 commit comments

Comments
 (0)