Skip to content

Commit

Permalink
fetchgit: set http.proxy globally for submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
linsui committed Mar 12, 2024
1 parent 9b4057a commit 0f8d818
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 0f8d818

Please sign in to comment.