Expand file paths when adding boxes in Cygwin

This commit is contained in:
Mitchell Hashimoto 2013-04-07 13:46:20 -07:00
parent 421e16fefa
commit 162239d2cd
1 changed files with 3 additions and 1 deletions

View File

@ -21,7 +21,9 @@ module Vagrant
url = env[:box_url]
if url !~ /^[a-z0-9]+:.*$/i
@logger.info("No protocol found on box URL, assuming file:")
url = "file:#{File.expand_path(url)}"
file_path = File.expand_path(url)
file_path = Util::Platform.cygwin_windows_path(file_path)
url = "file:#{file_path}"
end
downloader_options = {}