Skip to content

Commit 70b44c7

Browse files
committed
return early when we cannot find the appropriate revision
1 parent ab29d4b commit 70b44c7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,8 @@ def checkout_find_version_for_graalvm(args):
14391439
SUITE.vc.update(path, rev=parent)
14401440
if not os.path.exists(suite):
14411441
mx.log("Got to revision before suite, reverting to %s" % current_commit)
1442+
mx.vc.update(path, rev=current_commit)
1443+
return
14421444
with open(suite) as f:
14431445
contents = f.read()
14441446
if not PY3:

0 commit comments

Comments
 (0)