]> git.ipfire.org Git - thirdparty/git.git/commit
http: do not ignore proxy path
authorRyan Hendrickson <ryan.hendrickson@alum.mit.edu>
Fri, 2 Aug 2024 05:20:07 +0000 (05:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 2 Aug 2024 15:30:08 +0000 (08:30 -0700)
commit0ca365c2ed48084974c7081bdfe3189094a2b993
tree0f8a727a639e86bf72cb8d9c601234994a066dd4
parent891ee3b9db5cbd35a9759896f347546c5edb7929
http: do not ignore proxy path

The documentation for `http.proxy` describes that option, and the
environment variables it overrides, as supporting "the syntax understood
by curl". curl allows SOCKS proxies to use a path to a Unix domain
socket, like `socks5h://localhost/path/to/socket.sock`. Git should
therefore include, if present, the path part of the proxy URL in what it
passes to libcurl.

Co-authored-by: Jeff King <peff@peff.net>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Ryan Hendrickson <ryan.hendrickson@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config/http.txt
http.c
t/socks4-proxy.pl [new file with mode: 0644]
t/t5564-http-proxy.sh