summaryrefslogtreecommitdiffstats
path: root/branch.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-12-16 02:54:26 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-16 02:54:26 +0100
commitab738b2f1f35fbc3658ac107e1ad55b21c1e0fbc (patch)
tree8eb63219f3a49d742357586e6b924254a5adb834 /branch.c
parentMerge branch 'jk/describe-perf' (diff)
parenttag: "git tag" refuses to use HEAD as a tagname (diff)
downloadgit-ab738b2f1f35fbc3658ac107e1ad55b21c1e0fbc.tar.xz
git-ab738b2f1f35fbc3658ac107e1ad55b21c1e0fbc.zip
Merge branch 'jc/forbid-head-as-tagname'
"git tag" has been taught to refuse to create refs/tags/HEAD as such a tag will be confusing in the context of UI provided by the Git Porcelain commands. * jc/forbid-head-as-tagname: tag: "git tag" refuses to use HEAD as a tagname t5604: do not expect that HEAD can be a valid tagname refs: drop strbuf_ prefix from helpers refs: move ref name helpers around
Diffstat (limited to 'branch.c')
-rw-r--r--branch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/branch.c b/branch.c
index ebaa870c01..77716966fe 100644
--- a/branch.c
+++ b/branch.c
@@ -372,7 +372,7 @@ int read_branch_desc(struct strbuf *buf, const char *branch_name)
*/
int validate_branchname(const char *name, struct strbuf *ref)
{
- if (strbuf_check_branch_ref(ref, name)) {
+ if (check_branch_ref(ref, name)) {
int code = die_message(_("'%s' is not a valid branch name"), name);
advise_if_enabled(ADVICE_REF_SYNTAX,
_("See `man git check-ref-format`"));