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

Bug? url.insteadOf overwrites remote.pushUrl

From
Kirill Likhodedov <kirill.likhodedov@jetbrains.com>
Date
Oct 14, 2011, 13:55 UTC
Message-ID
<CAB6D58F-A3C9-4532-A9CC-10E43CD34E4E@jetbrains.com>

I've found that defining url.<base>.insteadOf overrides explicit remote.<name>.pushUrl. On the other hand, pushInsteadOf doesn't override explicit pushUrl. Is it a bug?

# cat .git/config
[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = github.com/klikh/Test.git 
	pushUrl = jetbrains.com/klikh/Test.git 
[url "http://"]
  insteadOf=jet

# git remote -v origin github.com/klikh/Test.git (fetch) origin http://brains.com/klikh/Test.git (push)

See also http://kerneltrap.org/mailarchive/git/2009/9/7/11264/thread - patch introducing pushInsteadOf & discussion 

---------------------------------- Kirill Likhodedov JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"

Next: Michael J Gruber
Message 1 of 3 in “Bug? url.insteadOf overwrites remote.pushUrl”
  1. Kirill LikhodedovOct 14, 2011
  2. Michael J GruberOct 14, 2011
  3. Kirill LikhodedovOct 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.