Skip to content

Commit

Permalink
Fix no result in git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
neoxelox committed Aug 5, 2022
1 parent 74af283 commit 52e07ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superinvoke/extensions/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def tag(context: Context, current: bool = True) -> Optional[str]:
else:
result = context.attempt("git describe --tags --abbrev=0").replace("^0", "")

if "undefined" in result or "fatal" in result:
if not result or "undefined" in result or "fatal" in result:
result = None

return result
Expand Down

0 comments on commit 52e07ba

Please sign in to comment.