From: Teemu Likonen Date: Sat, 08 Mar 2008 06:16:10 GMT Subject: Re: [PATCH/RFC] Make "git remote rm " remove file refs/remotes//HEAD Message-ID: <200803080816.10811.tlikonen@iki.fi> In-Reply-To: <7vlk4uyoln.fsf@gitster.siamese.dyndns.org> Junio C Hamano kirjoitti: > Junio C Hamano writes: > > I think "update-ref -d" should remove the ref without dereferencing > > anyway. How about not doing your patch at all (you would need to > > manually remove the symref in "prune" codepath as well), and > > instead doing this? > > > > I do not know how this reacts when the tracked HEAD points at a ref > > that lexicographically sorts earlier, say branch "A". > > And it turns out it does not react very well. You would want to do > something like this on top of that one. This turned out to be much more complicated than just deleting a file. Thank you, these patches seem to work (at least from user's point of view).