From 3cbdedb62095db19348355a5ab43d2a490012f40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89tienne=20Barri=C3=A9?= Date: Wed, 21 Jan 2026 12:59:28 +0100 Subject: Fix `VCS::GIT#export_changelog` + gmake RELNAME=master@0f1eea09490 AUTOCONF=autoconf dist /home/chkbuild/.rbenv/versions/3.4.8/bin/ruby --disable=gems ./tool/make-snapshot \ -srcdir=. -packages=gzip,zip,all \ -unicode-version=17.0.0 \ tmp master@0f1eea09490 Exporting master@0f1eea09490 Cloning into '/home/chkbuild/chkbuild/tmp/build/20260121T093003Z/tmp/ruby-snapshot20260121-3800606-t2y44s/ruby'... done. fatal: bad revision '#' fatal: bad revision '#' ./tool/make-snapshot:399: warning: no starting commit found --- tool/lib/vcs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 26c9763c13..4169031436 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -459,7 +459,8 @@ class VCS rev or next rev unless rev.empty? end - unless from&.match?(/./) or (from = branch_beginning(url))&.match?(/./) + to ||= url.to_str + unless from&.match?(/./) or (from = branch_beginning(to))&.match?(/./) warn "no starting commit found", uplevel: 1 from = nil end @@ -470,7 +471,6 @@ class VCS else warn "Could not fetch notes/commits tree", uplevel: 1 end - to ||= url.to_str if from arg = ["#{from}^..#{to}"] else -- cgit v1.2.3