Skip to content

Commit a83e217

Browse files
author
Nicolas Laurent
committed
fix enterprise checkout logic
1 parent 55febdb commit a83e217

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tool/jt.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,12 +2069,11 @@ def bootstrap_toolchain
20692069

20702070
# Must clone enterprise before running `mx scheckimports` in `sforceimports?`
20712071
cloned = env.include?('ee') && clone_enterprise
2072+
checkout_enterprise_revision(env) if cloned
20722073

20732074
if options.delete('--sforceimports') || sforceimports?(mx_base_args)
20742075
mx('-p', TRUFFLERUBY_DIR, 'sforceimports')
2075-
checkout_enterprise_revision(env) if env.include?('ee')
2076-
elsif cloned
2077-
checkout_enterprise_revision(env)
2076+
checkout_enterprise_revision(env) if env.include?('ee') && !cloned
20782077
end
20792078

20802079
mx_options, mx_build_options = args_split(options)

0 commit comments

Comments
 (0)