Skip to content

Commit

Permalink
Delete strange character in context tag extension
Browse files Browse the repository at this point in the history
  • Loading branch information
neoxelox committed Jul 16, 2022
1 parent 198c9db commit 337ebf1
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 @@ -88,7 +88,7 @@ def branch(context: Context) -> str:

# Gets the current commit tag if any.
def tag(context: Context) -> Optional[str]:
result = context.attempt("git name-rev --name-only --tags HEAD")
result = context.attempt("git name-rev --name-only --tags HEAD").replace("^0", "")
return result if result != "undefined" else None


Expand Down

0 comments on commit 337ebf1

Please sign in to comment.