Skip to content

Commit

Permalink
Deprecate get_branch_tags function
Browse files Browse the repository at this point in the history
  • Loading branch information
dolfinus committed Jan 7, 2022
1 parent eb89275 commit df461e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setuptools_git_versioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_all_tags(sort_by=DEFAULT_SORT_BY): # type: (str) -> List[str]

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


def get_tag(*args, **kwargs): # type: (*str, **str) -> Optional[str]
tags = get_branch_tags(*args, **kwargs)
tags = get_tags(*args, **kwargs)
if tags:
return tags[0]
return None
Expand Down

0 comments on commit df461e6

Please sign in to comment.