Skip to content

Commit

Permalink
More cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Feb 18, 2025
1 parent 025f609 commit 3c71e51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions util/git-tag-check/git-tag-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ def is_tag_reachable(tag: str, branch: str) -> bool:
tag_sha = get_commit_sha(tag)
branch_sha = get_commit_sha(branch)
if tag_sha != branch_sha:
result = run_git_command(
# An exception will occur if the return code != 0
run_git_command(
['git', '-C', str(REPO_PATH), 'merge-base', '--is-ancestor', tag, branch],
f"Error checking if {tag} is ancestor of {branch}"
)
# This return should always be true as an exception will occur if the return code != 0
return result.returncode == 0

return True


Expand Down

0 comments on commit 3c71e51

Please sign in to comment.