mirror of
https://github.com/git/git.git
synced 2026-01-10 01:56:42 +00:00
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
This commit is contained in:
@@ -2094,7 +2094,7 @@ sub format_log_line_html {
|
||||
(
|
||||
# The output of "git describe", e.g. v2.10.0-297-gf6727b0
|
||||
# or hadoop-20160921-113441-20-g094fb7d
|
||||
(?<!-) # see strbuf_check_tag_ref(). Tags can't start with -
|
||||
(?<!-) # see check_tag_ref(). Tags can't start with -
|
||||
[A-Za-z0-9.-]+
|
||||
(?!\.) # refs can't end with ".", see check_refname_format()
|
||||
-g$regex
|
||||
|
||||
Reference in New Issue
Block a user