git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rename a remote does not update pushdefault (v1.9.5)
@ 2015-03-30  9:28 Alexander Duytschaever
  2015-03-30 19:39 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Duytschaever @ 2015-03-30  9:28 UTC (permalink / raw)
  To: git@vger.kernel.org

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)

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-31  3:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-30  9:28 rename a remote does not update pushdefault (v1.9.5) Alexander Duytschaever
2015-03-30 19:39 ` Junio C Hamano
2015-03-31  3:52   ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).