Revert "We do not like "HEAD" as a new branch name"
This reverts ee34518d629331dadd58b1a75294369d679eda8b commit.
Junio C Hamano committed
Dec 16, 2005 at 23:48 UTC
f7087e2e7c34421b4577876969da94d0f6195414
1 file changed
-5
refs.c
-5
@@ -347,11 +347,6 @@ int check_ref_format(const char *ref)
347
if (!ch) {
348
if (level < 2)
349
return -1; /* at least of form "heads/blah" */
350
-
351
- /* do not allow ref name to end in "HEAD" */
352
- if (cp - ref > 4 && !strcmp(cp - 4, "HEAD"))
353
- return -1;
354
-
350
return 0;
351
}
352
}