From 74028c210c23a13b3168886efcf837b4bf930468 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 29 Apr 2023 00:46:35 +0900 Subject: sync_tool.rake: Fold too long message [ci skip] Split into title and body, like as the pull-request. --- tool/sync_test_lib.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tool') 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") -- cgit v1.2.1