[前][次][番号順一覧][スレッド一覧]

ruby-changes:58975

From: Hiroshi <ko1@a...>
Date: Sat, 30 Nov 2019 14:49:23 +0900 (JST)
Subject: [ruby-changes:58975] 80705e2c4f (master): Add to support the single commit for sync_default_gems.rb

https://git.ruby-lang.org/ruby.git/commit/?id=80705e2c4f

From 80705e2c4fe7c1e968830880ea4408990e3f3c39 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Sat, 30 Nov 2019 14:48:26 +0900
Subject: Add to support the single commit for sync_default_gems.rb


diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb
index d50cad1..810f1e9 100644
--- a/tool/sync_default_gems.rb
+++ b/tool/sync_default_gems.rb
@@ -279,6 +279,10 @@ def sync_default_gems_with_commits(gem, range) https://github.com/ruby/ruby/blob/trunk/tool/sync_default_gems.rb#L279
   end
   system(*%W"git fetch --no-tags #{gem}")
 
+  unless range.include?("..")
+    range = "#{range}~1..#{range}"
+  end
+
   commits = IO.popen(%W"git log --format=%H,%s #{range}") do |f|
     f.read.split("\n").reverse.map{|commit| commit.split(',', 2)}
   end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]