diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-25 19:14:49 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-25 19:14:49 +0000 |
commit | 04817ae6d3e1d898d6fbf09ad146850d26d2b404 (patch) | |
tree | 7e5482d13830cacf363d21a087b490588a960095 /lib/rubygems/source/git.rb | |
parent | c107372597586e1ad0fea03c00a14bdd7205b5d8 (diff) |
* lib/rubygems: Update to RubyGems master 612f85a. Notable changes:
Fixed installation and activation of git: and path: gems via
Gem.use_gemdeps
Improved documentation coverage
* test/rubygems: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/source/git.rb')
-rw-r--r-- | lib/rubygems/source/git.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/rubygems/source/git.rb b/lib/rubygems/source/git.rb index c4f2724645..2794735c96 100644 --- a/lib/rubygems/source/git.rb +++ b/lib/rubygems/source/git.rb @@ -91,8 +91,8 @@ class Gem::Source::Git < Gem::Source success = system @git, 'reset', '--quiet', '--hard', @reference success &&= - system @git, 'submodule', 'update', - '--quiet', '--init', '--recursive', out: IO::NULL if @need_submodules + Gem::Util.silent_system @git, 'submodule', 'update', + '--quiet', '--init', '--recursive' if @need_submodules success end @@ -161,7 +161,9 @@ class Gem::Source::Git < Gem::Source file = File.basename spec_file Dir.chdir directory do - Gem::Specification.load file + spec = Gem::Specification.load file + spec.full_gem_path = File.expand_path '.' if spec + spec end end.compact end |