Read the branch's reflog in rule-hook overrides when a path shares its name
CI / tests (pull_request) Successful in 2m11s

This commit is contained in:
2026-11-10 11:17:17 +01:00
parent cda45a931c
commit 509804da0d
5 changed files with 28 additions and 6 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ def print_overrides(directory: str) -> int:
return 1
found = guarded_git(directory, "branch", "--show-current")
branch = found if isinstance(found, str) and found else "HEAD"
reflog = guarded_git(directory, "reflog", "show", "--format=%H", branch)
reflog = guarded_git(directory, "reflog", "show", "--format=%H", branch, "--")
head = guarded_git(directory, "rev-parse", "HEAD")
unread = unread_reflog(reflog, head)
if unread: