mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
68a3f679d9
Rake stores the current top-level task and arguments in global state. Invoking another top-level task within the same process requires overwriting this state. Doing so indiscriminately can cause incorrect behavior, such as infinitely repeating the original task. In particular, this is a problem when running one task from another via `rails_command "...", inline: true`. The solution is to save and restore the global state in each call to `RakeCommand.perform` using the `Rake.with_application` method. Fixes #39128. |
||
---|---|---|
.. | ||
rake_command.rb |