mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Support main branch for syntax_suggest
This commit is contained in:
parent
055fc7b14d
commit
41a275c89a
1 changed files with 8 additions and 2 deletions
|
@ -547,6 +547,12 @@ end
|
|||
def update_default_gems(gem, release: false)
|
||||
|
||||
author, repository = REPOSITORIES[gem.to_sym].split('/')
|
||||
default_branch = case gem
|
||||
when 'syntax_suggest'
|
||||
"main"
|
||||
else
|
||||
"master"
|
||||
end
|
||||
|
||||
puts "Update #{author}/#{repository}"
|
||||
|
||||
|
@ -572,8 +578,8 @@ def update_default_gems(gem, release: false)
|
|||
last_release = `git tag`.chomp.split.delete_if{|v| v =~ /pre|beta/ }.last
|
||||
`git checkout #{last_release}`
|
||||
else
|
||||
`git checkout master`
|
||||
`git rebase origin/master`
|
||||
`git checkout #{default_branch}`
|
||||
`git rebase origin/#{default_branch}`
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue