We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 011cf0e + cc747a2 commit 474f9a5Copy full SHA for 474f9a5
src/script/ptl-tool.py
@@ -302,12 +302,13 @@ def build_branch(args):
302
try:
303
base_path = args.base_path + base
304
base = next(ref for ref in G.refs if ref.path == base_path)
305
+ # So we know that we're not on an old test branch, detach HEAD onto ref:
306
+ base.checkout()
307
except StopIteration:
- log.error("Branch " + base + " does not exist!")
- sys.exit(1)
308
-
309
- # So we know that we're not on an old test branch, detach HEAD onto ref:
310
- base.checkout()
+ log.info(f"Trying to checkout uninterpreted base {base}")
+ c = G.commit(base)
+ G.git.checkout(c)
311
+ assert G.head.is_detached
312
313
for pr in prs:
314
pr = int(pr)
0 commit comments