Skip to content

Commit fffbbab

Browse files
committed
fix typos
1 parent 70b44c7 commit fffbbab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,20 +1426,20 @@ def checkout_find_version_for_graalvm(args):
14261426
if i.name == "sulong":
14271427
needed_version = i.version
14281428
break
1429-
current_commit = SUITE.vc.tip(path)
1429+
current_commit = SUITE.vc.tip(path).strip()
14301430
mx.log("Searching %s commit that imports graal repository at %s" % (projectname, needed_version))
14311431
while needed_version != other_version:
14321432
if other_version:
14331433
parent = SUITE.vc.git_command(path, ["show", "--pretty=format:%P", "-s", "HEAD"]).split()
14341434
if not parent:
14351435
mx.log("Got to oldest revision before finding appropriate commit, reverting to %s" % current_commit)
1436-
mx.vc.update(path, rev=current_commit)
1436+
SUITE.vc.update(path, rev=current_commit)
14371437
return
14381438
parent = parent[0]
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)
1442+
SUITE.vc.update(path, rev=current_commit)
14431443
return
14441444
with open(suite) as f:
14451445
contents = f.read()

0 commit comments

Comments
 (0)