forked from infra/keys
check ref name against relative path
This commit is contained in:
parent
88e4b44d10
commit
b55a294e40
1 changed files with 1 additions and 1 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue