diff options
author | Silvan Mosberger <infinisil@icloud.com> | 2019-08-31 01:16:50 +0200 |
---|---|---|
committer | Silvan Mosberger <infinisil@icloud.com> | 2019-08-31 01:16:50 +0200 |
commit | 89636b9a5e233708db27afdafadbefd85457efb4 (patch) | |
tree | 8da4f969f64274c184462f3afb9afbf00291cd0e /pkgs | |
parent | 00762b57545dba3b3e21e3a649b574db3db36c65 (diff) |
nix-prefetch-git: Remove some pack file non-determinism
Diffstat (limited to 'pkgs')
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git index b447911ab8d3..931be1a37007 100755 --- a/pkgs/build-support/fetchgit/nix-prefetch-git +++ b/pkgs/build-support/fetchgit/nix-prefetch-git @@ -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 ) } |