Skip to content

Commit f78385f

Browse files
committed
jt docker: handle --test current to use the current branch
1 parent 2e20766 commit f78385f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tool/docker.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ def docker(*args)
190190

191191
unless print_only
192192
chdir(docker_dir) do
193-
raw_sh 'git', 'clone', '--branch', test_branch, TRUFFLERUBY_DIR, 'truffleruby-tests'
193+
branch_args = test_branch == 'current' ? [] : ['--branch', test_branch]
194+
raw_sh 'git', 'clone', *branch_args, TRUFFLERUBY_DIR, 'truffleruby-tests'
194195
test_files.each do |file|
195196
FileUtils.cp_r "truffleruby-tests/#{file}", '.'
196197
end

0 commit comments

Comments
 (0)