Fixed to initialize ruby-core repository when it has no master branch
This commit is contained in:
parent
7a26021d1d
commit
55a5a4bc03
@ -440,14 +440,16 @@ def update_default_gems(gem)
|
|||||||
Dir.chdir("../../#{author}/#{repository}") do
|
Dir.chdir("../../#{author}/#{repository}") do
|
||||||
unless `git remote`.match(/ruby\-core/)
|
unless `git remote`.match(/ruby\-core/)
|
||||||
`git remote add ruby-core git@github.com:ruby/ruby.git`
|
`git remote add ruby-core git@github.com:ruby/ruby.git`
|
||||||
`git fetch ruby-core --no-tags`
|
end
|
||||||
|
`git fetch ruby-core master --no-tags`
|
||||||
|
unless `git branch`.match(/ruby\-core/)
|
||||||
`git co ruby-core/master`
|
`git co ruby-core/master`
|
||||||
`git branch ruby-core`
|
`git branch ruby-core`
|
||||||
end
|
end
|
||||||
`git fetch ruby-core master --no-tags`
|
|
||||||
`git co ruby-core`
|
`git co ruby-core`
|
||||||
`git rebase ruby-core/master`
|
`git rebase ruby-core/master`
|
||||||
`git co master`
|
`git co master`
|
||||||
|
`git fetch origin master`
|
||||||
`git rebase origin/master`
|
`git rebase origin/master`
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user