Re: HTTP push not respecting .netrc
- From
Tay Ray Chuan <rctay89@gmail.com>
- Date
- Dec 31, 2010, 04:03 UTC
- Message-ID
- <AANLkTi=4cE711TtqE0E-05s9Pk72C8OymNf_-5NhrfXS@mail.gmail.com>
- In-Reply-To
- <AANLkTik84-zRwi+0dGGFoTUrj6Zr3bxO=fE9P_3MuZdZ@mail.gmail.com>
On Thu, Dec 30, 2010 at 2:56 PM, David Borowitz <dave@bwitz.com> wrote:
Show 9 quoted lines
> I'm trying to push to a smart HTTP remote using the following command line: > http_proxy=localhost:4242 git push -v http://xxxxx:25989/git/foo > +refs/heads/*:refs/heads/* > (The weird proxy and port are not under my control.) > > The webserver should return 401 for unauthorized access, and indeed it does: > error: RPC failed; result=65, HTTP code = 401 > (The rest of the error text from git push is not particularly useful, > but I'm not worried about that at the moment.)
Could you run the push with the environment variable GIT_CURL_VERBOSE=1?
Show 7 quoted lines
> [2] > GET http://xxxxx:25989/git/foo/info/refs?service=git-receive-pack HTTP/1.1 > User-Agent: git/1.7.4.rc0 > Host: xxxxx:25989 > Accept: */* > Proxy-Connection: Keep-Alive > Pragma: no-cache
Try having a entry for xxxxx:25989 in your .netrc - that should be sufficient to demonstrate to you that git+curl reads your .netrc.
-- Cheers, Ray Chuan