Only expand path if not in windows format

This commit is contained in:
Chris Roberts 2018-06-18 09:39:30 -07:00
parent cdab45424e
commit c5c63d291d
1 changed files with 1 additions and 1 deletions

View File

@ -392,8 +392,8 @@ module Vagrant
# @param [String, Pathname] path Path to convert
# @return [String]
def wsl_to_windows_path(path)
path = File.expand_path(path.to_s)
if wsl? && wsl_windows_access? && !path.match(/^[a-zA-Z]:/)
path = File.expand_path(path.to_s)
if wsl_path?(path)
parts = path.split("/")
parts.delete_if(&:empty?)