mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Tweak upstream information of upstream commit.
This commit is contained in:
parent
0bf829c17b
commit
8549774430
1 changed files with 3 additions and 1 deletions
|
@ -253,7 +253,9 @@ def sync_default_gems_with_commits(gem, range)
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue