Skip to content
Browse files

Don't set $GEM_HOME unless necessary

  • Loading branch information...
1 parent fc73646 commit da1ba6311ac92200e96cfb561dc4b77ac9e7d478 Carl Lerche committed Jul 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler.rb
View
2 lib/bundler.rb
@@ -208,7 +208,7 @@ def configure_gem_home_and_path
if settings[:disable_shared_gems]
ENV['GEM_PATH'] = ''
ENV['GEM_HOME'] = File.expand_path(bundle_path, root)
- else
+ elsif Gem.dir != bundle_path.to_s
paths = [Gem.dir, Gem.path].flatten.compact.uniq.reject{|p| p.empty? }
ENV["GEM_PATH"] = paths.join(File::PATH_SEPARATOR)
ENV["GEM_HOME"] = bundle_path.to_s

0 comments on commit da1ba63

Please sign in to comment.
Something went wrong with that request. Please try again.