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

Branch renaming not updating the configuration correctly.

From
JGJurko Gospodnetić <jurko.gospodnetic@docte.hr>
Date
Jul 28, 2008, 13:36 UTC
Message-ID
<g6ki09$81c$1@ger.gmane.org>
   Hi.
   I noticed that the .git/config file is not updated completely in case 
you create two branches aaa and bbb, set the repository up so it 
automatically merges changes from bbb into aaa and then rename the branches:
   Here is an exact list of commands and config file contents 
illustrating the problem:
   > git branch aaa
   > git branch bbb
   > git config --add branch.aaa.remote .
   > git config --add branch.aaa.merge bbb
-- .git/config: --
[branch "aaa"]
	remote = .
	merge = bbb
------------------
   > git branch -m aaa patched
   > git branch -m bbb original
-- .git/config: --
[branch "patched"]
	remote = .
	merge = bbb
------------------
   And as you can see above, the branch.patched.merge configuration 
setting did not get updated and still holds the old branch name 'bbb'.
   Hope this helps.
   Best regards,
     Jurko Gospodnetić
Next: Johannes Schindelin
Message 1 of 3 in “Branch renaming not updating the configuration correctly.”
  1. Jurko GospodnetićJul 28, 2008
  2. Johannes SchindelinJul 28, 2008
  3. Jurko GospodnetićJul 28, 2008

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.