Skip to content

Commit

Permalink
Unset _NIX_FORCE_HTTP properly
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbauer committed Jun 23, 2020
1 parent 5fa33d7 commit dcedb93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ if [[ -n $(type -p git) ]]; then
# Check that we can substitute it from other places.
nix copy --to file://$cacheDir $path
nix-store --delete $path
unset _NIX_FORCE_HTTP
path2=$(nix eval --raw "(builtins.fetchTree { type = \"git\"; url = file:///no-such-repo; treeHash = \"$treeHash\"; }).outPath" --substituters file://$cacheDir)
export _NIX_FORCE_HTTP=1
[ $path2 = $path ]
else
echo "Git not installed; skipping Git tests"
Expand Down

0 comments on commit dcedb93

Please sign in to comment.