diff options
author | linsui <linsui@inbox.lv> | 2024-03-12 15:22:40 +0800 |
---|---|---|
committer | linsui <linsui@inbox.lv> | 2024-03-21 19:14:00 +0800 |
commit | 1ed37ac9f37e0e16bd2c9a9fc0556308c41da318 (patch) | |
tree | 838781eae9bc898d41836a8c3dab7ab3ab2273f5 | |
parent | 936ae679c9888b4c7adecc39189d4d68e72b25c0 (diff) |
fetchgit: set http.proxy globally for submodules
git config in the repo doesn't work for submodules
-rwxr-xr-x | pkgs/build-support/fetchgit/nix-prefetch-git | 2 |
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 a3ea0297673d..7ac3dec91f7f 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. |