Skip to content
Browse files

Don't duplicate gem paths

  • Loading branch information...
1 parent 69acfd8 commit 7a7628c17188c6fbae5dbbc7f6a506b0f41c57a5 @indirect indirect committed Apr 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/bundler.rb
View
2 lib/bundler.rb
@@ -144,7 +144,7 @@ def configure_gem_home_and_path
ENV['GEM_HOME'] = File.expand_path(bundle_path, root)
ENV['GEM_PATH'] = ''
else
- paths = [Gem.dir, Gem.path].flatten.compact.reject{|p| p.empty? }
+ 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
end

0 comments on commit 7a7628c

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