Skip to content

Commit 15a8c3c

Browse files
committed
Fix hooks run after commit in python-update-import
1 parent 36ab074 commit 15a8c3c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

mx.graalpython/mx_graalpython.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -851,13 +851,6 @@ def update_import_cmd(args):
851851

852852
repos_updated = []
853853

854-
# commit ci if dirty
855-
if vc.isDirty(overlaydir):
856-
vc.commit(overlaydir, "Update Python imports")
857-
repos_updated.append(overlaydir)
858-
859-
overlaytip = str(vc.tip(overlaydir)).strip()
860-
861854
# now allow dependent repos to hook into update
862855
output = mx.OutputCapture()
863856
for repo in repos:
@@ -869,6 +862,13 @@ def update_import_cmd(args):
869862
else:
870863
print(mx.colorize('%s command for %s.. skipped!' % (cmdname, basename), color='magenta', bright=True, stream=sys.stdout))
871864

865+
# commit ci-overlays if dirty
866+
if vc.isDirty(overlaydir):
867+
vc.commit(overlaydir, "Update Python imports")
868+
repos_updated.append(overlaydir)
869+
870+
overlaytip = str(vc.tip(overlaydir)).strip()
871+
872872
# update ci import in all our repos, commit the full update
873873
prev_verbosity = mx._opts.very_verbose
874874
for repo in repos:

0 commit comments

Comments
 (0)