public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Ensure Rails::Generator quotes file names while generating diff. [#264 
state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
badcarl (author)
Tue May 27 14:21:01 -0700 2008
lifo (committer)
Tue Jul 01 19:28:02 -0700 2008
commit  a81f16af31b28203a7c2c6cd89249a90487b7fe0
tree    40681518b1356e4c44618837a40cdd30f044af8a
parent  474d42538269a141687c7c66bef6575b4682b15d
...
88
89
90
91
 
92
93
94
...
88
89
90
 
91
92
93
94
0
@@ -88,7 +88,7 @@ module Rails
0
                 Tempfile.open(File.basename(destination), File.dirname(dst)) do |temp|
0
                   temp.write render_file(src, file_options, &block)
0
                   temp.rewind
0
-                  $stdout.puts `#{diff_cmd} #{dst} #{temp.path}`
0
+                  $stdout.puts `#{diff_cmd} "#{dst}" "#{temp.path}"`
0
                 end
0
                 puts "retrying"
0
                 raise 'retry diff'

Comments