]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/ptl-tool: use provided base even in conflict 68987/head
authorPatrick Donnelly <pdonnell@ibm.com>
Tue, 19 May 2026 00:25:57 +0000 (20:25 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 19 May 2026 00:26:12 +0000 (20:26 -0400)
It is sometimes useful to base off a local branch instead of a common
branch.

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

index 31ddb55edc8cfda1884a9d9ef4f0bea1553302ba..5921c5c9ce52534c99fef85a2d2473a1e5aee849 100755 (executable)
@@ -1773,8 +1773,7 @@ def build_branch(args):
         response = get_pr_info(session, pr)
         detected_base = response.get("base", {}).get("ref")
         if base and detected_base and detected_base != base:
-            log.error(f"Base mismatch! PR #{pr} targets '{detected_base}' but expected '{base}'.")
-            sys.exit(1)
+            log.warning(f"Base mismatch! PR #{pr} targets '{detected_base}' but expected '{base}'. Trusting provided --base.")
 
         remote_ref = "refs/pull/{pr}/head".format(pr=pr)
         remote_sha1 = response.get('head', {}).get('sha')