summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-29 00:46:35 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-29 00:46:35 +0900
commit74028c210c23a13b3168886efcf837b4bf930468 (patch)
tree3aedbad89a565ca8fa341856ef382c56557322b1 /tool
parentd887cd5ea10f3d06a8538303531a6686d2a15b34 (diff)
downloadruby-74028c210c23a13b3168886efcf837b4bf930468.tar.gz
sync_tool.rake: Fold too long message [ci skip]
Split into title and body, like as the pull-request.
Diffstat (limited to 'tool')
-rwxr-xr-xtool/sync_test_lib.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/sync_test_lib.rb b/tool/sync_test_lib.rb
index e48e90a144..904fa42d02 100755
--- a/tool/sync_test_lib.rb
+++ b/tool/sync_test_lib.rb
@@ -23,7 +23,7 @@ repos = %w[
branch_name = "update-test-lib-#{Time.now.strftime("%Y%m%d")}"
title = "Update test libraries from ruby/ruby #{Time.now.strftime("%Y-%m-%d")}"
commit = `git rev-parse HEAD`.chomp
-message = "Update test libraries from https://github.com/ruby/ruby/commit/#{commit}"
+message = "From https://github.com/ruby/ruby/commit/#{commit}"
update = true
keep = nil
@@ -76,7 +76,7 @@ repos.each do |repo|
system "git add #{file}"
end
- if IO.popen(%W"git commit -m #{message}", &:read).chomp =~ /nothing to commit/
+ if IO.popen(%W"git commit -m #{title}\n\n#{message}", &:read).chomp =~ /nothing to commit/
puts "#{repo}: nothing to update"
elsif update
system(*%W"git push")