From: Junio C Hamano Date: Thu, 15 Dec 2005 19:34:31 GMT Subject: Re: [PATCH] We do not like "HEAD" as a new branch name Message-ID: <7vacf2p320.fsf@assigned-by-dhcp.cox.net> In-Reply-To: Johannes Schindelin writes: > + /* do not allow "HEAD" as ref name */ > + if (ch == 'H' && (!strcmp(cp, "EAD") || > + !strncmp(cp, "EAD/", 4))) Why forbid HEAD in the middle, like "refs/heads/HEAD/frotz"? Confusion avoidance? We might want to forbid anything that matches /^.*_?HEAD$/ to catch ORIG_HEAD for example, though.