about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2024-03-21 19:30:03 +0200
committerGitHub <noreply@github.com>2024-03-21 19:30:03 +0200
commitc2684b4d2d650dce7923a7e5d44ad7b8fa44aefd (patch)
treeac8078f2de5b297386030237d53cf695416bc1bd
parent13a8da967119594974797df76e0fbf43194303b1 (diff)
parent1ed37ac9f37e0e16bd2c9a9fc0556308c41da318 (diff)
Merge pull request #295240 from linsui/gitproxy
fetchgit: set http.proxy globally for submodules
-rwxr-xr-xpkgs/build-support/fetchgit/nix-prefetch-git2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/fetchgit/nix-prefetch-git b/pkgs/build-support/fetchgit/nix-prefetch-git
index a3ea0297673da..7ac3dec91f7f4 100755
--- a/pkgs/build-support/fetchgit/nix-prefetch-git
+++ b/pkgs/build-support/fetchgit/nix-prefetch-git
@@ -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.