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

rename a remote does not update pushdefault (v1.9.5)

From
ADAlexander Duytschaever <alexander.duytschaever@ugent.be>
Date
Mar 30, 2015, 09:28 UTC
Message-ID
<B2C5B27F9C4A45469123297E3F6BCF0C55DA0AEA07@XMAIL08.UGent.be>
When defining pushdefault and renaming the associated remote, the pushdefault setting becomes invalid. Instead, it should follow the renamed remote if that was designated as pushdefault.
Test procedure:
1. Create/cd empty directory
2. `git init .`
3. `git remote add abc def`
4. Observe that `git remote` now shows 'abc'
5. `git config default.pushdefault abc`
6. Observe that `git config --list` shows default.pushdefault=abc
7. `git remote rename abc xyz`
BUG: observe that pushdefault still refers to 'abc', while it should now refer to 'xyz'.
Rgds
(Initially (wrongly) filed as TGit bug: https://code.google.com/p/tortoisegit/issues/detail?id=2438)
Next: Junio C Hamano
Message 1 of 3 in “rename a remote does not update pushdefault (v1.9.5)”
  1. Alexander DuytschaeverMar 30, 2015
  2. Junio C HamanoMar 30, 2015
  3. Jeff KingMar 31, 2015

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.