git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: David BorowitzNext: Junio C Hamano
Message 2 of 5 in “HTTP push not respecting .netrc”
  1. David BorowitzDec 30, 2010
  2. Tay Ray ChuanDec 31, 2010
  3. Junio C HamanoJan 13, 2011
  4. David BorowitzJan 13, 2011
  5. David BorowitzJan 27, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.