nix-prefetch-git: run single-threaded 'git repack'

Without this, the generated pack files are non-deterministic.

I didn't notice this issue in my earlier testing, because my test repo
had too few commits for the thread scheduling to take effect. (Test repo
had about 10 commits.)

+3 -2
+3 -2
pkgs/build-support/fetchgit/nix-prefetch-git
··· 226 fi 227 done 228 229 - # Do a full repack, for determinism. 230 - # Repack does not add unreferenced objects to a pack file. 231 git repack -A -d -f 232 233 # Garbage collect unreferenced objects. 234 git gc --prune=all
··· 226 fi 227 done 228 229 + # Do a full repack. Must run single-threaded, or else we loose determinism. 230 + git config pack.threads 1 231 git repack -A -d -f 232 + rm -f .git/config 233 234 # Garbage collect unreferenced objects. 235 git gc --prune=all