Skip to content
Discussion options

You must be logged in to vote

Both commands do go through the proxy. I ran them from a Git for Windows 2.48.1 clone of that repository with https_proxy pointing at a local proxy that logs every request: with and without the refspec, GIT_CURL_VERBOSE=1 prints Establish HTTP proxy tunnel to gerrit.collaboraoffice.com:443 and the proxy logs a CONNECT gerrit.collaboraoffice.com:443 for each run. So the refspec does not make git bypass https_proxy.

What differs is what happens inside the tunnel:

  • git fetch https://gerrit.collaboraoffice.com/online only fetches HEAD. In an up-to-date clone that is the ref listing and no pack data at all (0.7 s here, HEAD -> FETCH_HEAD).
  • git fetch https://gerrit.collaboraoffice.com/online re…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@grandinj
Comment options

Answer selected by grandinj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants