3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs
Bjørn Forsman 53614cf1a7 nix-prefetch-git: fix determinism with leaveDotGit
Add more files to the delete list:

 * .git/FETCH_HEAD
 * .git/ORIG_HEAD
 * .git/refs/remotes/origin/HEAD
 * .git/config

Further, remove all remote branches, remove tags not reachable from the
given 'rev', do a full repack and then garbage collect unreferenced
objects.

According to my testing, the result is fully deterministic. As in "any
change done to the upstream repo, ahead of 'rev', will not affect the
hash of the resulting 'clone'". Even changing the clone URL will not
change the output hash, because .git/config is removed.

A new version of git can of course change store format, but that's
unavoidable.

For big repositories, the repack operation may be a bit heavy. But as
far as I can see there is no cheaper way to determinism.
2014-11-02 13:15:33 +01:00
..
applications pidgin-latex: replace with SF one and fix 2014-11-02 04:35:43 +03:00
build-support nix-prefetch-git: fix determinism with leaveDotGit 2014-11-02 13:15:33 +01:00
data Merge pull request #4674 from balajisivaraman/meslo-lg 2014-10-29 16:34:25 +00:00
desktops Merge pull request #4627 from abbradar/xfce-mixer 2014-10-31 15:08:42 +01:00
development r-Defaults: add version 1.1-1 again 2014-11-01 21:39:12 +01:00
games tibia: update to 10.61 2014-11-01 01:49:00 +00:00
misc monthly bump of dolphinEmuMaster 2014-11-02 00:11:01 -07:00
os-specific grsecurity: Update stable and test patches 2014-11-01 17:25:22 +01:00
servers mongodb: 2.6.4 -> 2.6.5 2014-11-01 13:13:15 +01:00
shells
stdenv
test
tools Merge pull request #4771 from abbradar/pbzip2-update 2014-11-02 00:52:28 +01:00
top-level pidgin-latex: replace with SF one and fix 2014-11-02 04:35:43 +03:00