[Nix-dev] Re: Use shallow copying in fetchgit

Marc Weber marco-oweber at gmx.de
Thu Jul 21 01:26:20 CEST 2011


Excerpts from Peter Simons's message of Thu Jul 21 01:14:23 +0200 2011:
That's the code
pkgs/build-support/fetchgit/nix-prefetch-git

Its doing this:

        git fetch --depth 1 origin +"$ref" || return 1

Didn't know that you can fetch hash's that way.
You can git fetch --depth 100 then try 200 then 500 .. to find it as
well. If Pierron's solution works its best.

Marc Weber



More information about the nix-dev mailing list