Permalink
Browse files

Ensure Rails::Generator quotes file names while generating diff. [#264

…state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information...
1 parent 8477fce commit 85bd455713f5cef54cefebf048d5258b86bb8ac9 @badcarl badcarl committed with jeremy May 27, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails_generator/commands.rb
@@ -88,7 +88,7 @@ def force_file_collision?(destination, src, dst, file_options = {}, &block)
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'

0 comments on commit 85bd455

Please sign in to comment.