Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/refs.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-12-17 10:48:22 +0300
committerJunio C Hamano <junkio@cox.net>2005-12-18 10:10:56 +0300
commitf7087e2e7c34421b4577876969da94d0f6195414 (patch)
tree6df10fb87b728bca6d3f60aebc6e2ca44afb1ae5 /refs.c
parent8872f27b8773dfe7d3dbb440c27d4a5a9dbc8470 (diff)
Revert "We do not like "HEAD" as a new branch name"
This reverts ee34518d629331dadd58b1a75294369d679eda8b commit.
Diffstat (limited to 'refs.c')
-rw-r--r--refs.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/refs.c b/refs.c
index 0d63c1fcab..c33729c54a 100644
--- a/refs.c
+++ b/refs.c
@@ -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;
}
}