Skip to content

Commit df461e6

Browse files
committed
Deprecate get_branch_tags function
1 parent eb89275 commit df461e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setuptools_git_versioning.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_all_tags(sort_by=DEFAULT_SORT_BY): # type: (str) -> List[str]
7171

7272
def get_branch_tags(*args, **kwargs): # type: (*str, **str) -> List[str]
7373
warnings.warn(
74-
"`get_tags` function is deprecated "
74+
"`get_branch_tags` function is deprecated "
7575
"since setuptools-git-versioning v1.8.0 "
7676
"and will be dropped in v2.0.0\n"
7777
"Please use `get_tags` instead",
@@ -89,7 +89,7 @@ def get_tags(sort_by=DEFAULT_SORT_BY): # type: (str) -> List[str]
8989

9090

9191
def get_tag(*args, **kwargs): # type: (*str, **str) -> Optional[str]
92-
tags = get_branch_tags(*args, **kwargs)
92+
tags = get_tags(*args, **kwargs)
9393
if tags:
9494
return tags[0]
9595
return None

0 commit comments

Comments
 (0)