0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

Merge pull request #295240 from linsui/gitproxy

fetchgit: set http.proxy globally for submodules
This commit is contained in:
Doron Behar 2024-03-21 19:30:03 +02:00 committed by GitHub
commit c2684b4d2d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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