Skip to content

Commit

Permalink
fetchgit: set http.proxy globally for submodules
Browse files Browse the repository at this point in the history
git config in the repo doesn't work for submodules
  • Loading branch information
linsui committed Mar 21, 2024
1 parent 936ae67 commit 1ed37ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/fetchgit/nix-prefetch-git
Original file line number Diff line number Diff line change
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 1ed37ac

Please sign in to comment.