mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/mspec@1034afc
This commit is contained in:
parent
bf77fc23e7
commit
26a9f80c82
1 changed files with 1 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue