Merge pull request #67805 from Infinisil/more-git-determinism

nix-prefetch-git: Remove some pack file non-determinism
This commit is contained in:
Silvan Mosberger 2019-09-06 10:24:45 +02:00 committed by GitHub
commit da72765041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
)
}