Skip to content

Commit

Permalink
Merge pull request #295240 from linsui/gitproxy
Browse files Browse the repository at this point in the history
fetchgit: set http.proxy globally for submodules
  • Loading branch information
doronbehar committed Mar 21, 2024
2 parents 13a8da9 + 1ed37ac commit c2684b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchgit/nix-prefetch-git
Expand Up @@ -120,7 +120,7 @@ init_remote(){
git config remote.origin.partialclonefilter "blob:none"
echo "$sparseCheckout" | git sparse-checkout set --stdin ${nonConeMode:+--no-cone}
fi
( [ -n "$http_proxy" ] && clean_git config http.proxy "$http_proxy" ) || true
( [ -n "$http_proxy" ] && clean_git config --global http.proxy "$http_proxy" ) || true
}

# Return the reference of an hash if it exists on the remote repository.
Expand Down

0 comments on commit c2684b4

Please sign in to comment.