ruby-changes:56506
From: Hiroshi <ko1@a...>
Date: Sun, 14 Jul 2019 23:45:58 +0900 (JST)
Subject: [ruby-changes:56506] Hiroshi SHIBATA: 8549774430 (master): Tweak upstream information of upstream commit.
https://git.ruby-lang.org/ruby.git/commit/?id=8549774430 From 85497744305fcd7ff2b7768867f68c8fac03c8a0 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA <hsbt@r...> Date: Sun, 14 Jul 2019 22:05:39 +0900 Subject: Tweak upstream information of upstream commit. diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index 897fa79..93031ac 100644 --- a/tool/sync_default_gems.rb +++ b/tool/sync_default_gems.rb @@ -253,7 +253,9 @@ def sync_default_gems_with_commits(gem, range) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L253 break end - `git filter-branch -f --msg-filter 'echo "[#{$repositories[gem.to_sym]}]" && echo && cat' -- HEAD~1..HEAD` + prefix = "[#{($repositories[gem.to_sym])}]".gsub(/\//, '\/') + suffix = "https://github.com/#{($repositories[gem.to_sym])}/commit/#{sha[0,10]}" + `git filter-branch -f --msg-filter 'sed "1s/^/#{prefix} /" && echo && echo #{suffix}' -- HEAD~1..HEAD` unless $?.success? puts "Failed to modify commit message of #{sha}" break -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/