From a81f16af31b28203a7c2c6cd89249a90487b7fe0 Mon Sep 17 00:00:00 2001 From: Carl Porth Date: Tue, 27 May 2008 14:21:01 -0700 Subject: Ensure Rails::Generator quotes file names while generating diff. [#264 state:resolved] Signed-off-by: Pratik Naik --- railties/lib/rails_generator/commands.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails_generator/commands.rb b/railties/lib/rails_generator/commands.rb index 08ecbfb5cf..fb62ba6940 100644 --- a/railties/lib/rails_generator/commands.rb +++ b/railties/lib/rails_generator/commands.rb @@ -88,7 +88,7 @@ module Rails Tempfile.open(File.basename(destination), File.dirname(dst)) do |temp| temp.write render_file(src, file_options, &block) temp.rewind - $stdout.puts `#{diff_cmd} #{dst} #{temp.path}` + $stdout.puts `#{diff_cmd} "#{dst}" "#{temp.path}"` end puts "retrying" raise 'retry diff' -- cgit v1.2.3