mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Ensure Rails::Generator quotes file names while generating diff. [#264 state:resolved]
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
parent
474d425382
commit
a81f16af31
1 changed files with 1 additions and 1 deletions
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue