check ref name against relative path

This commit is contained in:
kleines Filmröllchen 2025-01-28 11:16:28 +01:00
parent 88e4b44d10
commit b55a294e40
Signed by: filmroellchen
SSH key fingerprint: SHA256:NarU6J/XgCfEae4rbei0YIdN2pYaYDccarK6R53dnc8

View file

@ -100,7 +100,7 @@ def verify_dir(dir: Path, ref: git.Reference):
def current_ref(repo: git.Repo) -> git.Reference:
for ref in repo.references:
if ref.name == action_ref or ref.abspath == action_ref:
if ref.name == action_ref or ref.path == action_ref:
return ref
raise Exception(f"No ref named {action_ref} found")