From 80705e2c4fe7c1e968830880ea4408990e3f3c39 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Sat, 30 Nov 2019 14:48:26 +0900 Subject: [PATCH] Add to support the single commit for sync_default_gems.rb --- tool/sync_default_gems.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tool/sync_default_gems.rb b/tool/sync_default_gems.rb index d50cad1658..810f1e9a92 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) 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