nix-prefetch-git: Remove some pack file non-determinism

This commit is contained in:
Silvan Mosberger 2019-08-31 01:16:50 +02:00
parent 00762b5754
commit 89636b9a5e
No known key found for this signature in database
GPG Key ID: 9424360B4B85C9E7

View File

@ -265,7 +265,9 @@ make_deterministic_repo(){
rm -f .git/config
# Garbage collect unreferenced objects.
git gc --prune=all
# Note: --keep-largest-pack prevents non-deterministic ordering of packs
# listed in .git/objects/info/packs by only using a single pack
git gc --prune=all --keep-largest-pack
)
}