All of lore.kernel.org
 help / color / mirror / Atom feed
* [BUG?] git remote rm repo nukes local refs for mirror repo
@ 2008-10-14  9:05 Michael J Gruber
  2008-10-14  9:32 ` Johannes Schindelin
  0 siblings, 1 reply; 4+ messages in thread
From: Michael J Gruber @ 2008-10-14  9:05 UTC (permalink / raw)
  To: Git Mailing List

I just noticed the hard way that "git remote rm repo" nukes all local
(mirrored) refs if repo had been setup with "git remote add --mirror
repo url".
Some may argue that this behaviour fits the description "deletes all
remote tracking branches" but I would claim it does not: mirrored
branches are not remote tracking branches in the proper sense.

So:
- Is this behaviour intended?
- If yes, how else would I remove a remote mirror configuration without
destroying a local repo? git config, I know, but that can't be the way.

Michael

Technical:
remote_find_tracking() in remote.c returns "branch" as the remote
tracking branch of "branch" (itself) in a mirror setup. Is this the
right thing to do?

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

end of thread, other threads:[~2008-10-14 11:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-14  9:05 [BUG?] git remote rm repo nukes local refs for mirror repo Michael J Gruber
2008-10-14  9:32 ` Johannes Schindelin
2008-10-14 10:55   ` Samuel Tardieu
2008-10-14 11:34   ` Michael J Gruber

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.