Skip to content

Commit

Permalink
Revert "We do not like "HEAD" as a new branch name"
Browse files Browse the repository at this point in the history
This reverts ee34518 commit.
  • Loading branch information
Junio C Hamano committed Dec 18, 2005
1 parent 8872f27 commit f7087e2
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions refs.c
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,6 @@ int check_ref_format(const char *ref)
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;
}
}
Expand Down

0 comments on commit f7087e2

Please sign in to comment.