mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Put an empty line before the original URL
Even if the raw commit log does not end with a newline. Suggested to use `grep` by znz. Co-Authored-By: Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
This commit is contained in:
parent
d5ab1979f7
commit
82f496a84b
1 changed files with 1 additions and 1 deletions
|
@ -399,7 +399,7 @@ def sync_default_gems_with_commits(gem, ranges, edit: nil)
|
|||
|
||||
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`
|
||||
`git filter-branch -f --msg-filter 'grep "" - | sed "1s/^/#{prefix} /" && echo && echo #{suffix}' -- HEAD~1..HEAD`
|
||||
unless $?.success?
|
||||
puts "Failed to modify commit message of #{sha}"
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue