Permalink
Browse files

Fix message when running TemplateRunner#git. [#1526 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent f7f1136 commit e4eadf3910d04fcdcab3e084d249f3a881a3ca35 @porras porras committed with lifo Dec 7, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/rails_generator/generators/applications/app/template_runner.rb
View
4 railties/lib/rails_generator/generators/applications/app/template_runner.rb
@@ -109,13 +109,13 @@ def gem(name, options = {})
# 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

0 comments on commit e4eadf3

Please sign in to comment.