Skip to content

Commit fc64e70

Browse files
Merge pull request #184 from makenowjust/refspec
Correct refspec to fetch Ruby source
2 parents 87d57b3 + 94f66dc commit fc64e70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/ruby_wasm/build_system/product/ruby_source.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ def fetch
3939
system "git init", chdir: src_dir
4040
system "git remote add origin #{repo_url}", chdir: src_dir
4141
system(
42-
"git fetch --depth 1 origin #{@params[:rev]}:#{@params[:rev]}",
42+
"git fetch --depth 1 origin #{@params[:rev]}:origin/#{@params[:rev]}",
4343
chdir: src_dir
4444
) or raise "failed to clone #{repo_url}"
45-
system("git checkout #{@params[:rev]}", chdir: src_dir) or
45+
system("git checkout origin/#{@params[:rev]}", chdir: src_dir) or
4646
raise "failed to checkout #{@params[:rev]}"
4747
when "local"
4848
FileUtils.mkdir_p File.dirname(src_dir)

0 commit comments

Comments
 (0)