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:
Sandro Jäckel 2023-10-05 14:40:32 +02:00 committed by Alyssa Ross
parent 8c72f651b5
commit 025a028c47

View file

@ -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