1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 21:21:00 +01:00

Unset environment variable after test

This commit is contained in:
Josh Spence 2025-07-09 18:09:04 +10:00
parent a649a53679
commit 1ae00a5657

View file

@ -326,3 +326,4 @@ export GIT_CONFIG_GLOBAL="$TEST_ROOT/gitconfig"
git config --global core.autocrlf true
new_narhash=$(nix eval --raw --impure --expr "(builtins.fetchGit { url = \"$repo\"; ref = \"master\"; }).narHash")
[[ "$new_narhash" = "$narhash" ]]
unset GIT_CONFIG_GLOBAL