mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Ignore pre-release for sync target on sync_default_gems
This commit is contained in:
parent
561dda9934
commit
0024a76ea0
1 changed files with 1 additions and 1 deletions
|
@ -555,7 +555,7 @@ def update_default_gems(gem, release: false)
|
|||
`git fetch origin --tags`
|
||||
|
||||
if release
|
||||
last_release = `git tag`.chomp.split.last
|
||||
last_release = `git tag`.chomp.split.delete_if{|v| v =~ /pre|beta/ }.last
|
||||
`git checkout #{last_release}`
|
||||
else
|
||||
`git checkout master`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue