Merge pull request #6765 from PeterMosmans/windows-path-fix
Fix for #6761 (fixes incomplete #6598)
This commit is contained in:
commit
1702584d1e
|
@ -200,7 +200,7 @@ module Vagrant
|
|||
path = path.gsub("/", "\\")
|
||||
|
||||
# If the path is just a drive letter, then return that as-is
|
||||
return path if path =~ /^[a-zA-Z]:\\?$/
|
||||
return path + "\\" if path =~ /^[a-zA-Z]:\\?$/
|
||||
|
||||
# Convert to UNC path
|
||||
"\\\\?\\" + path.gsub("/", "\\")
|
||||
|
|
Loading…
Reference in New Issue