summaryrefslogtreecommitdiff
path: root/tool/vcs.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-22 23:18:09 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-05-22 23:52:51 +0900
commitd819d97cf02fd0a5b5b1f6ee69c9fdb83276e6c2 (patch)
tree16ca69537234c3b7d3ae39e9f897b53bd835fde9 /tool/vcs.rb
parent8fb77acac70bab6924c063020b6fe3e93fece242 (diff)
Default to the current branch
* tool/make-snapshot: default to the current branch if no branch but srcdir is given.
Diffstat (limited to 'tool/vcs.rb')
-rw-r--r--tool/vcs.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/vcs.rb b/tool/vcs.rb
index 3f0a331..f251c96 100644
--- a/tool/vcs.rb
+++ b/tool/vcs.rb
@@ -278,6 +278,7 @@ class VCS
end
def branch(name)
+ return trunk if name == "trunk"
url + "branches/#{name}"
end