summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Barrié <etienne.barrie@gmail.com>2026-01-21 12:59:28 +0100
committerJean Boussier <jean.boussier@gmail.com>2026-02-02 15:32:06 +0100
commit3cbdedb62095db19348355a5ab43d2a490012f40 (patch)
treea946b954db17164adfe372af271b79a258eb13ef
parent9715b29a19c1fcb714b0de67ab373f808fb3ac9d (diff)
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 '#<struct VCS::GIT::Branch to_str="master">' fatal: bad revision '#<struct VCS::GIT::Branch to_str="master">' ./tool/make-snapshot:399: warning: no starting commit found
-rw-r--r--tool/lib/vcs.rb4
1 files 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