summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-01 19:54:46 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-09-01 20:57:30 +0900
commit462a8be5112f8c4e621d106304ac617ebcf39eb0 (patch)
treee00230d6b6109a3c5ae8211faa026ef1e39ac4e5 /tool/make-snapshot
parentf67ab7f30c837ce4b9c2ae39d7c189413fac6dff (diff)
downloadruby-462a8be5112f8c4e621d106304ac617ebcf39eb0.tar.gz
VCS#revision_header: Make arguments optional
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-xtool/make-snapshot4
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index 2c15a52dbb..5d0ec7a3fb 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -309,7 +309,7 @@ def package(vcs, rev, destdir, tmp = nil)
warn "#{$0}: #{rev} not found"
return
end
- revision = (info = vcs.get_revisions(url))[1]
+ revision = vcs.get_revisions(url)[1]
end
v = "ruby"
@@ -346,7 +346,7 @@ def package(vcs, rev, destdir, tmp = nil)
end
File.open("#{v}/revision.h", "wb") {|f|
- f.puts vcs.revision_header(*info, time: false)
+ f.puts vcs.revision_header(revision)
}
version ||= (versionhdr = IO.read("#{v}/version.h"))[RUBY_VERSION_PATTERN, 1]
version ||=