From bc4d91fb737c4de855ba2ca333ff690205f88f2a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 5 May 2014 21:17:48 -0700 Subject: [PATCH] core: Environment#cwd should expand path to full path --- lib/vagrant/environment.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/vagrant/environment.rb b/lib/vagrant/environment.rb index 34deaf058..d0cd1b206 100644 --- a/lib/vagrant/environment.rb +++ b/lib/vagrant/environment.rb @@ -84,6 +84,7 @@ module Vagrant if !opts[:cwd].directory? raise Errors::EnvironmentNonExistentCWD, cwd: opts[:cwd].to_s end + opts[:cwd] = opts[:cwd].expand_path # Set the default ui class opts[:ui_class] ||= UI::Silent