]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/ptl-tool: add more refs for main branch 70576/head
authorPatrick Donnelly <pdonnell@ibm.com>
Mon, 27 Jul 2026 13:41:33 +0000 (09:41 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Mon, 27 Jul 2026 13:45:28 +0000 (09:45 -0400)
Start with "upstream", then "origin", then finally the local main branch.

Signed-off-by: Patrick Donnelly <pdonnell@ibm.com>
src/script/ptl-tool.py

index 9ba4314f5560e1f6c4e6fb510a5b8e31b4111b1b..6a5cf32a9c6a81da72cfcbb42685d389c72a17f0 100755 (executable)
@@ -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