diff options
-rw-r--r-- | railties/lib/rails_generator/generators/applications/app/template_runner.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails_generator/generators/applications/app/template_runner.rb b/railties/lib/rails_generator/generators/applications/app/template_runner.rb index 00079daffd..c6113648e6 100644 --- a/railties/lib/rails_generator/generators/applications/app/template_runner.rb +++ b/railties/lib/rails_generator/generators/applications/app/template_runner.rb @@ -109,13 +109,13 @@ module Rails # git :add => "onefile.rb", :rm => "badfile.cxx" # def git(command = {}) - puts "running git #{command}" - in_root do if command.is_a?(Symbol) + puts "running git #{command}" Git.run(command.to_s) else command.each do |command, options| + puts "running git #{command} #{options}" Git.run("#{command} #{options}") end end |