summaryrefslogtreecommitdiff
path: root/tool/make-snapshot
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-30 11:23:06 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-30 11:23:21 +0900
commit98ccdd744ab46554e7f0e1d0a89f2ed24d365e53 (patch)
tree9a3942cb396e106fe4080449c684320b58f6b97c /tool/make-snapshot
parente593d5b31a13c59f9af07a2a6012c09bae7477d1 (diff)
Export the last modified revision for tags [ci skip]
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 8ce14214ba..29d6bc0388 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -238,7 +238,7 @@ def package(vcs, rev, destdir, tmp = nil)
end
if !revision and revision = vcs.get_revisions(url)
url ||= vcs.branch(revision[3])
- revision = revision[0]
+ revision = revision[1]
end
version = nil
unless revision
@@ -248,7 +248,7 @@ def package(vcs, rev, destdir, tmp = nil)
warn "#{$0}: #{rev} not found"
return
end
- revision = vcs.get_revisions(url)[0]
+ revision = vcs.get_revisions(url)[1]
end
v = nil
if $exported