fetchgit: fix private fetching via netrc
This fixes a regression introduced in https://github.com/NixOS/nixpkgs/pull/256628 which broke fetching with private = true through a netrc file. Tested locally with a really special github enterprise.
This commit is contained in:
parent
8c72f651b5
commit
025a028c47
1 changed files with 1 additions and 0 deletions
|
@ -417,6 +417,7 @@ fi
|
|||
tmpHomePath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-git-tmp-home-XXXXXXXXXX")"
|
||||
exit_handlers+=(remove_tmpHomePath)
|
||||
HOME="$tmpHomePath"
|
||||
ln -s /build/.netrc "$HOME/"
|
||||
unset XDG_CONFIG_HOME
|
||||
export GIT_CONFIG_NOSYSTEM=1
|
||||
|
||||
|
|
Loading…
Reference in a new issue