From: Nicolas Pitre Date: Thu, 15 Oct 2009 23:16:13 GMT Subject: Re: [PATCH] Proof-of-concept patch to remember what the detached HEAD was Message-ID: In-Reply-To: <7vfx9k1faa.fsf@alter.siamese.dyndns.org> On Thu, 15 Oct 2009, Junio C Hamano wrote: > Junio C Hamano writes: > > > $ git checkout origin/next ;# ditto > > $ git symbolic-ref HEAD > > refs/remotes/origin/next > > Ok, after reading Daniel's message to remind us that "git fetch" after > this will get us into trouble, I agree that detaching HEAD is inevitable. Either the fetch should be refused just like a commit would, or HEAD gets detached automatically in that case. Probably the former would be less confusing, otherwise the user might expect to see the updated remote branch after the fetch and not understand that a detached HEAD remained on the previous remote branch state. Nicolas