Commits

Junio C Hamano  committed f7087e2

Revert "We do not like "HEAD" as a new branch name"

This reverts ee34518d629331dadd58b1a75294369d679eda8b commit.

  • Participants
  • Parent commits 8872f27

Comments (0)

Files changed (1)

 		if (!ch) {
 			if (level < 2)
 				return -1; /* at least of form "heads/blah" */
-
-			/* do not allow ref name to end in "HEAD" */
-			if (cp - ref > 4 && !strcmp(cp - 4, "HEAD"))
-				return -1;
-
 			return 0;
 		}
 	}