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

[BUG] remote-curl.c: honor pushurl

From
MSMichael Schubert <mschub@elegosoft.com>
Date
Oct 14, 2011, 15:37 UTC
Message-ID
<4E985744.6050904@elegosoft.com>

When doing a push (fetch, ..) over http(s), git calls git-remote-http to communicate with the server.

	git-remote-http <remote> [<url>]

Git correctly honors a configured pushurl and passes it to git-remote-http, but git-remote-http is initiating the http connection with the url defined for remote (remote->url) rather than the passed url. This undermines the purpose of a config like

	url = https://example.com/repo.git
	pushurl = https://user@example.com/repo.git

Introduced around 888692b7 - CC'ing Tay Ray Chuan. (I don't know if it was working before, though.)

Next: Jeff King
Message 1 of 2 in “[BUG] remote-curl.c: honor pushurl”
  1. Michael SchubertOct 14, 2011
  2. Jeff KingOct 14, 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.