Skip to content

Commit

Permalink
return tag early
Browse files Browse the repository at this point in the history
  • Loading branch information
Spitfire1900 committed Mar 27, 2024
1 parent ffd23d3 commit 147aec9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xontrib/pygitstatus/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,4 @@ def tag(fld: PromptField, ctx: PromptFields):
tag_commit = reference.peel(Commit)
if head_commit == tag_commit:
fld.value = _tag.partition('refs/tags/')[-1]
break

0 comments on commit 147aec9

Please sign in to comment.