aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
Diffstat (limited to 'tool')
-rw-r--r--tool/sync_default_gems.rb4
1 files changed, 4 insertions, 0 deletions
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