diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-27 12:39:19 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-03-28 17:40:53 +0100 |
commit | 4e3b6e9bca3eb9c8b87f16d51478262a0e00d02f (patch) | |
tree | 18b4fde59d83b85b2a4102d0693e7db3f1157901 /bin | |
parent | 2aa1a7f309d213b881a8341b1a4ca5c70f2aae52 (diff) | |
download | bundler-4e3b6e9bca3eb9c8b87f16d51478262a0e00d02f.tar.gz |
Remove clone rubygems task
Delegate everything to `bin/with_rubygems` instead.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/with_rubygems | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/with_rubygems b/bin/with_rubygems index d16c289822..f12422f6b7 100755 --- a/bin/with_rubygems +++ b/bin/with_rubygems @@ -15,8 +15,11 @@ unless rubygems_path.directory? run("git", "clone", "https://github.com/rubygems/rubygems.git", rubygems_path.to_s) end Dir.chdir(rubygems_path) do + run("git remote update") version = "v#{version}" if version =~ /\A\d/ run("git", "checkout", version, "--quiet") + hash = `git rev-parse HEAD`.chomp + puts "Checked out rubygems '#{version}' at #{hash}" end if version rubygems_lib = rubygems_path + "lib" |