Read the branch's reflog in rule-hook overrides when a path shares its name
CI / tests (pull_request) Successful in 2m11s
CI / tests (pull_request) Successful in 2m11s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user