summaryrefslogtreecommitdiff
path: root/lib/bundler/source
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-04-06 20:53:57 -0500
committerSamuel Giddins <segiddins@segiddins.me>2017-04-07 12:03:15 -0500
commitaba5e40d174bd8127377718013b0f2fb78939d40 (patch)
treedb47022ea484a3f5a48c60fe3711463fa1168a09 /lib/bundler/source
parent4e1ff77ec1148c3170e746d42e77c07d6c1cb19a (diff)
downloadbundler-aba5e40d174bd8127377718013b0f2fb78939d40.tar.gz
[StubSpecification] Properly handle full_gem_path for git gems
Diffstat (limited to 'lib/bundler/source')
-rw-r--r--lib/bundler/source/git.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb
index d92b741202..dd515166c2 100644
--- a/lib/bundler/source/git.rb
+++ b/lib/bundler/source/git.rb
@@ -307,6 +307,7 @@ module Bundler
if defined?(::Gem::StubSpecification)
def load_gemspec(file)
stub = Gem::StubSpecification.gemspec_stub(file, install_path.parent, install_path.parent)
+ stub.full_gem_path = Pathname.new(file).dirname.expand_path(root).to_s.untaint
StubSpecification.from_stub(stub)
end
end