We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe00c41 commit b17bbd2Copy full SHA for b17bbd2
commitizen/git.py
@@ -277,7 +277,7 @@ def get_tag_names() -> list[str]:
277
c = cmd.run("git tag --list")
278
if c.err:
279
return []
280
- return list(filter(None, (tag.strip() for tag in c.out.split("\n"))))
+ return [tag for raw in c.out.split("\n") if (tag := raw.strip())]
281
282
283
def find_git_project_root() -> Path | None:
0 commit comments