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:
slackfan 2018-09-07 09:27:01 +02:00 committed by Brian Cain
parent 89a21f0f47
commit e547b26309
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@ require "digest/md5"
require "thread" require "thread"
require "log4r" require "log4r"
require "vagrant/util/platform"
module Vagrant module Vagrant
# This represents a machine that Vagrant manages. This provides a singular # This represents a machine that Vagrant manages. This provides a singular
@ -593,7 +594,7 @@ module Vagrant
).chomp ).chomp
end end
if vagrant_cwd != @env.root_path.to_s if !File.identical?(vagrant_cwd.to_s, @env.root_path.to_s)
if vagrant_cwd if vagrant_cwd
ui.warn(I18n.t( ui.warn(I18n.t(
'vagrant.moved_cwd', 'vagrant.moved_cwd',