1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

tool/redmine-backporter.rb: Change redmine git revisions URL path.

This commit is contained in:
nagachika 2019-06-16 11:59:52 +09:00
parent 72cc5cf019
commit 17e6536fe0

View file

@ -271,7 +271,7 @@ def backport_command_string
# check if the Git revision is included in trunk
begin
uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/ruby-git/revisions/#{c}")
uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/git/revisions/#{c}")
uri.read($openuri_options)
true
rescue
@ -382,7 +382,7 @@ eom
uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/trunk/revisions/#{rev}/issues.json")
when /\A\h{7,40}\z/ # Git
rev = args
uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/ruby-git/revisions/#{rev}/issues.json")
uri = URI("#{REDMINE_BASE}/projects/ruby-trunk/repository/git/revisions/#{rev}/issues.json")
else
raise CommandSyntaxError
end