mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Exit with the syncing status [ci skip]
This commit is contained in:
parent
3695d94b25
commit
defdfa020a
1 changed files with 4 additions and 2 deletions
|
@ -468,7 +468,9 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil)
|
||||||
unless failed_commits.empty?
|
unless failed_commits.empty?
|
||||||
puts "---- failed commits ----"
|
puts "---- failed commits ----"
|
||||||
puts failed_commits
|
puts failed_commits
|
||||||
|
return false
|
||||||
end
|
end
|
||||||
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
def sync_lib(repo, upstream = nil)
|
def sync_lib(repo, upstream = nil)
|
||||||
|
@ -577,9 +579,9 @@ else
|
||||||
end
|
end
|
||||||
gem = ARGV.shift
|
gem = ARGV.shift
|
||||||
if ARGV[0]
|
if ARGV[0]
|
||||||
sync_default_gems_with_commits(gem, ARGV, edit: edit)
|
exit sync_default_gems_with_commits(gem, ARGV, edit: edit)
|
||||||
elsif auto
|
elsif auto
|
||||||
sync_default_gems_with_commits(gem, true, edit: edit)
|
exit sync_default_gems_with_commits(gem, true, edit: edit)
|
||||||
else
|
else
|
||||||
sync_default_gems(gem)
|
sync_default_gems(gem)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue