Skip to content

Commit

Permalink
Rearrange and call semver() on name unconditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
bswck committed Aug 6, 2024
1 parent 53848f1 commit ac522ac
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions __main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,11 @@ def tag(
] = '.',
) -> None:
if kind_or_name in Versioned.semantic_increment:
name = semver(repository.get_next_version(kind_or_name))
name = repository.get_next_version(kind_or_name)
else:
name = kind_or_name
subprocess.run([
'git', '-C', repository.location, 'tag', '-a', name,
'-m', '', *context.args]
)
args = ['-a', semver(name), '-m', '', *context.args]
subprocess.run(['git', '-C', repository.location, 'tag', *args])


if __name__ == '__main__':
Expand Down

0 comments on commit ac522ac

Please sign in to comment.