nixpkgs/pkgs/build-support/fetchgit
Elliot Cameron 3a99d1b642 nix-prefetch-git: respect NETRC
This script needs to support being run both as part of a `fetchgit`
derivation and as a standalone, command-line tool.

The use of `$NIX_BUILD_TOP` only works when used in `fetchgit` but not when
invoked as a standalone tool. Instead we try to respect `$NETRC` so that
the command-line invocation behaves more like standard tools and the
`fetchgit` derivation can explicitly set `$NETRC` when `netrcPhase` is used
to avoid all ambiguity.
2023-11-11 19:34:54 +01:00
..
builder.sh
default.nix nix-prefetch-git: respect NETRC 2023-11-11 19:34:54 +01:00
deterministic-git
nix-prefetch-git nix-prefetch-git: respect NETRC 2023-11-11 19:34:54 +01:00
tests.nix fetchgit: shallow clone for submodules (#254172) 2023-11-09 04:32:13 +02:00