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

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
Sergio Gil
2008-12-08 00:23:44 +01:00
committed by Pratik Naik
parent f7f113610e
commit e4eadf3910

View File

@@ -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