Convert hostpath to string on windows so gsub works
This commit is contained in:
parent
5be16cc194
commit
632349710e
|
@ -1,6 +1,9 @@
|
||||||
## 1.2.7 (unreleased)
|
## 1.2.7 (unreleased)
|
||||||
|
|
||||||
|
BUG FIXES:
|
||||||
|
|
||||||
|
- On Windows, properly convert synced folder host path to a string
|
||||||
|
so that separator replacement works properly.
|
||||||
|
|
||||||
## 1.2.6 (July 26, 2013)
|
## 1.2.6 (July 26, 2013)
|
||||||
|
|
||||||
|
|
|
@ -128,7 +128,7 @@ module VagrantPlugins
|
||||||
if Vagrant::Util::Platform.windows?
|
if Vagrant::Util::Platform.windows?
|
||||||
# On Windows, Ruby just uses normal '/' for path seps, so
|
# On Windows, Ruby just uses normal '/' for path seps, so
|
||||||
# just replace normal Windows style seps with Unix ones.
|
# just replace normal Windows style seps with Unix ones.
|
||||||
hostpath.gsub!("\\", "/")
|
hostpath = hostpath.to_s.gsub!("\\", "/")
|
||||||
end
|
end
|
||||||
|
|
||||||
options ||= {}
|
options ||= {}
|
||||||
|
|
Loading…
Reference in New Issue