Shared folder target path can be a Windows path [GH-1688]

This commit is contained in:
Mitchell Hashimoto 2013-07-20 00:00:49 -04:00
parent 7c61931142
commit 7fd363a2f4
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ BUG FIXES:
- Sharing folders works properly if ".profile" contains an echo. [GH-1677] - Sharing folders works properly if ".profile" contains an echo. [GH-1677]
- `vagrant ssh-config` IdentityFile is only wrapped in quotes if it - `vagrant ssh-config` IdentityFile is only wrapped in quotes if it
contains a space. [GH-1682] contains a space. [GH-1682]
- Shared folder target path can be a Windows path. [GH-1688]
## 1.2.4 (July 16, 2013) ## 1.2.4 (July 16, 2013)

View File

@ -326,7 +326,7 @@ module VagrantPlugins
guestpath = Pathname.new(options[:guestpath]) guestpath = Pathname.new(options[:guestpath])
hostpath = Pathname.new(options[:hostpath]).expand_path(machine.env.root_path) hostpath = Pathname.new(options[:hostpath]).expand_path(machine.env.root_path)
if guestpath.relative? if guestpath.relative? && guestpath.to_s !~ /^\w+:/
errors << I18n.t("vagrant.config.vm.shared_folder_guestpath_relative", errors << I18n.t("vagrant.config.vm.shared_folder_guestpath_relative",
:path => options[:guestpath]) :path => options[:guestpath])
else else