diff options
-rwxr-xr-x | support/download/git | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/support/download/git b/support/download/git index 281db61a9..792141183 100755 --- a/support/download/git +++ b/support/download/git @@ -92,6 +92,8 @@ rm -rf .git popd >/dev/null # Generate the archive, sort with the C locale so that it is reproducible +find "${basename}" -not -type d >"${basename}.list" +LC_ALL=C sort <"${basename}.list" >"${basename}.list.sorted" tar cf - --numeric-owner --owner=0 --group=0 --mtime="${date}" \ - -T <(find "${basename}" -not -type d |LC_ALL=C sort) \ -|gzip -n >"${output}" + -T "${basename}.list.sorted" >"${output}.tar" +gzip -n <"${output}.tar" >"${output}" |