diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 66f320e0d8..1ac51b0dba 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -583,10 +583,10 @@ while true args = cmd cmd = "show" end - if commands[cmd].is_a? String - cmd = list[cmd] - end cmd = list[cmd] + if commands[cmd].is_a? String + cmd = list[commands[cmd]] + end begin if cmd commands[cmd].call(args)