Git development
 help / color / mirror / Atom feed
* Bug in git remote prune?
@ 2009-11-06  0:34 Jay Soffian
  2009-11-06  1:36 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Jay Soffian @ 2009-11-06  0:34 UTC (permalink / raw)
  To: git

Let's say you've got the following tracking branches:

refs/remotes/origin/master
refs/remotes/origin/next
refs/remotes/origin/ghost

And origin has only "master" and "next" (ghost has been removed upstream).

Further, let's say you've got a refspec of:

[remote "origin"]
  fetch = +refs/heads/master:refs/remotes/origin/master

What should "git remote prune origin" do?

In my opinion, it should prune "next" and "ghost".  "ghost" is gone
from upstream, so that's obvious. I think "next" should also be pruned
because the refspec indicates the user is no longer interested in it.

Currently it doesn't do anything (it only considers "master" per the
refspec, which is still on origin, so it doesn't think there is
anything to prune).

Thoughts?

j.

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

end of thread, other threads:[~2009-11-06  1:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-06  0:34 Bug in git remote prune? Jay Soffian
2009-11-06  1:36 ` Junio C Hamano
2009-11-06  1:58   ` Jay Soffian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox