Don't compare paths by String
The implemented String comparison is misleading on Windows as it does not consider that paths on Windows are case insensitive Signed-off-by: Alexander Fischer <github@ordnungsdienst.org>
This commit is contained in:
parent
89a21f0f47
commit
e547b26309
|
@ -4,6 +4,7 @@ require "digest/md5"
|
|||
require "thread"
|
||||
|
||||
require "log4r"
|
||||
require "vagrant/util/platform"
|
||||
|
||||
module Vagrant
|
||||
# This represents a machine that Vagrant manages. This provides a singular
|
||||
|
@ -593,7 +594,7 @@ module Vagrant
|
|||
).chomp
|
||||
end
|
||||
|
||||
if vagrant_cwd != @env.root_path.to_s
|
||||
if !File.identical?(vagrant_cwd.to_s, @env.root_path.to_s)
|
||||
if vagrant_cwd
|
||||
ui.warn(I18n.t(
|
||||
'vagrant.moved_cwd',
|
||||
|
|
Loading…
Reference in New Issue