From: Jeff King Date: Wed, 21 Jan 2009 19:53:48 GMT Subject: Re: Deleting remote branch pointed by remote HEAD Message-ID: <20090121195348.GB3589@sigill.intra.peff.net> In-Reply-To: On Wed, Jan 21, 2009 at 02:50:40PM -0500, Daniel Barkalow wrote: > 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 > > 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