From ebc60e401f3407ab3e62b754e6e897edfebf00fb Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Mon, 27 Jul 2026 09:41:33 -0400 Subject: [PATCH] script/ptl-tool: add more refs for main branch Start with "upstream", then "origin", then finally the local main branch. Signed-off-by: Patrick Donnelly --- src/script/ptl-tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/ptl-tool.py b/src/script/ptl-tool.py index 9ba4314f5560..6a5cf32a9c6a 100755 --- a/src/script/ptl-tool.py +++ b/src/script/ptl-tool.py @@ -736,7 +736,7 @@ class CommitParityCheck(BaseAuditCheck): bp_commits_mapped = set() valid_ref = None - for ref in ['main', 'origin/main', 'upstream/main']: + for ref in ['upstream/heads/main', 'upstream/main', 'origin/heads/main', 'origin/main', 'main']: try: G.git.rev_parse('--verify', ref) valid_ref = ref -- 2.47.3