diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-22 00:06:16 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-15 16:05:12 +0900 |
commit | a73ea2126fe12f80a3edde167c78bf35884f895e (patch) | |
tree | bf7e24184bbff497b5c9d706b1fda2d11ce6b028 /spec | |
parent | 5ebca6d709c273b5daed7bc52f180af2ed86d080 (diff) |
[rubygems/rubygems] Clone rubygems from the local repo
It simplifies things and should avoid issues like the one we had where
the master branch had a bad `.gitattributes` file and changing it on a
PR would be disregarded.
In order for this to work, we need to make sure to fetch all tags from
the repository, so that they can properly be checked out later. This
does not apply to the case of testing against `RGV=..`, since no extra
cloning is needed there.
https://github.com/rubygems/rubygems/commit/d088d936b8
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3275
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/support/rubygems_version_manager.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/support/rubygems_version_manager.rb b/spec/bundler/support/rubygems_version_manager.rb index e89d4bab9f..2dbffd5f6c 100644 --- a/spec/bundler/support/rubygems_version_manager.rb +++ b/spec/bundler/support/rubygems_version_manager.rb @@ -108,7 +108,7 @@ private unless rubygems_path.directory? rubygems_path.parent.mkpath - sys_exec("git clone https://github.com/rubygems/rubygems.git #{rubygems_path}") + sys_exec("git clone .. #{rubygems_path}", :dir => source_root) end rubygems_path |