Re: Deleting remote branch pointed by remote HEAD
- From
Jeff King <peff@peff.net>
- Date
- Jan 21, 2009, 19:53 UTC
- Message-ID
- <20090121195348.GB3589@sigill.intra.peff.net>
- In-Reply-To
- <alpine.LNX.1.00.0901211443140.19665@iabervon.org>
On Wed, Jan 21, 2009 at 02:50:40PM -0500, Daniel Barkalow wrote:
Show 13 quoted lines
> I think the ideal thing is to keep the symref as a reminder and just give > a non-confusing error message instead of a confusing one. E.g.: > > """ > $foo is set to mean the tracking branch $foo/bar, which does not exist. > Use: > > git remote set-default $foo <name> > > to set a new default branch for $foo. > """ > > (And, of course, add that subcommand to remote)
I think that would be reasonable behavior (and probably a special mode for set-default to just update from the remote's idea of HEAD).
-Peff