Skip to content

Commit 7985813

Browse files
committed
Fix VCS::GIT#export_changelog
+ gmake RELNAME=master@0f1eea0 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
1 parent 5911a52 commit 7985813

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tool/lib/vcs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,8 @@ def export_changelog(url = '@', from = nil, to = nil, _path = nil, path: _path,
459459
rev or next
460460
rev unless rev.empty?
461461
end
462-
unless from&.match?(/./) or (from = branch_beginning(url))&.match?(/./)
462+
to ||= url.to_str
463+
unless from&.match?(/./) or (from = branch_beginning(to))&.match?(/./)
463464
warn "no starting commit found", uplevel: 1
464465
from = nil
465466
end
@@ -470,7 +471,6 @@ def export_changelog(url = '@', from = nil, to = nil, _path = nil, path: _path,
470471
else
471472
warn "Could not fetch notes/commits tree", uplevel: 1
472473
end
473-
to ||= url.to_str
474474
if from
475475
arg = ["#{from}^..#{to}"]
476476
else

0 commit comments

Comments
 (0)