summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2010-04-05 17:44:28 -0700
committerAndre Arko <andre@arko.net>2010-04-05 17:44:28 -0700
commit7a7628c17188c6fbae5dbbc7f6a506b0f41c57a5 (patch)
tree06af7efea4ec5fd49b6adf88e0b2bdb2cb952efb
parent69acfd88a919de8bac222fc37a1e79d5c6dfdf6c (diff)
downloadbundler-7a7628c17188c6fbae5dbbc7f6a506b0f41c57a5.tar.gz
Don't duplicate gem paths
-rw-r--r--lib/bundler.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb
index f9021667f0..0b0660b6d1 100644
--- a/lib/bundler.rb
+++ b/lib/bundler.rb
@@ -144,7 +144,7 @@ module Bundler
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