diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2020-03-13 22:27:54 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2020-03-13 22:27:54 +0900 |
commit | de15a26e9e297c9cc3171b1d40ef7776ca5838df (patch) | |
tree | c329b5494fede050857af97949b262f08dd0043f /tool | |
parent | 88f4ebac83a77f933e9da099eabdf05004767de9 (diff) | |
download | ruby-de15a26e9e297c9cc3171b1d40ef7776ca5838df.tar.gz |
tool/redmine-backporter.rb: fix typo
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/redmine-backporter.rb | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 757fe180bc..9d1f5fbe48 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -241,7 +241,7 @@ def find_svn_log(pattern) end def find_git_log(pattern) - `git #{RUBY_REPO_PATH ? "-C #{RUBY_REPO_PATH.shellecape}" : ""} log --grep="#{pattern}"` + `git #{RUBY_REPO_PATH ? "-C #{RUBY_REPO_PATH.shellescape}" : ""} log --grep="#{pattern}"` end def show_last_journal(http, uri) @@ -447,8 +447,12 @@ eom end if log && rev str = log[/merge revision\(s\) ([^:]+)(?=:)/] - str.insert(5, "d") - str = "ruby_#{TARGET_VERSION.tr('.','_')} #{rev} #{str}." + if str + str.insert(5, "d") + str = "ruby_#{TARGET_VERSION.tr('.','_')} #{rev} #{str}." + else + str = "ruby_#{TARGET_VERSION.tr('.','_')} #{rev}." + end if notes str << "\n" str << notes |