core: file:/// for windows paths [GH-5288]

This commit is contained in:
Mitchell Hashimoto 2015-11-23 09:53:28 -08:00
parent 1405395d81
commit 21cacb6eb8
1 changed files with 1 additions and 0 deletions

View File

@ -382,6 +382,7 @@ module Vagrant
file_path = File.expand_path(url) file_path = File.expand_path(url)
file_path = Util::Platform.cygwin_windows_path(file_path) file_path = Util::Platform.cygwin_windows_path(file_path)
file_path = file_path.gsub("\\", "/") file_path = file_path.gsub("\\", "/")
file_path = "/#{file_path}" if !file_path.start_with?("/")
url = "file://#{file_path}" url = "file://#{file_path}"
end end