Update push.rb

https://github.com/mitchellh/vagrant/issues/5570

When uploading from Windows to Linux, the Windows filepath was added to the Linux path.
This commit is contained in:
ctammes 2015-10-06 14:02:45 +02:00
parent a152045f81
commit 0556b3b040
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ module VagrantPlugins
# wait and close the (S)FTP connection as well
files = Hash[*all_files.flat_map do |file|
relative_path = relative_path_for(file, config.dir)
destination = File.expand_path(File.join(config.destination, relative_path))
destination = File.join(config.destination, relative_path)
file = File.expand_path(file, env.root_path)
[file, destination]
end]