1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2019-12-27 16:46:05 +01:00
parent bf77fc23e7
commit 26a9f80c82

View file

@ -12,7 +12,6 @@ IMPLS = {
}, },
mri: { mri: {
git: "https://github.com/ruby/ruby.git", git: "https://github.com/ruby/ruby.git",
master: "trunk",
}, },
} }
@ -48,10 +47,6 @@ class RubyImplementation
@data[:git] @data[:git]
end end
def default_branch
@data[:master] || "master"
end
def repo_name def repo_name
File.basename(git_url, ".git") File.basename(git_url, ".git")
end end
@ -99,7 +94,7 @@ def update_repo(impl)
Dir.chdir(impl.repo_name) do Dir.chdir(impl.repo_name) do
puts Dir.pwd puts Dir.pwd
sh "git", "checkout", impl.default_branch sh "git", "checkout", "master"
sh "git", "pull" sh "git", "pull"
end end
end end