summaryrefslogtreecommitdiff
path: root/tool/lib
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2024-05-09 01:02:59 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2024-05-09 01:02:59 +0900
commite9378788837f7d053df4339ac0a0ea1d683502a4 (patch)
tree130854db963adb9f13b50657ec6d972a53e327ba /tool/lib
parent26446cccc9e8c4dfb7655ae686106a1ee200f2ec (diff)
Revert "Update revision.h if branch unmatch not only revision"
This reverts commit 5a332940ed2f809cb17af7e4d068089b6e1fa6ca. Something does not work well on Github Actions.
Diffstat (limited to 'tool/lib')
-rw-r--r--tool/lib/vcs.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index 563382c927..3894f9c8e8 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -256,9 +256,8 @@ class VCS
if branch
e = '..'
name = branch.sub(/\A(.{#{limit-e.size}}).{#{e.size+1},}/o) {$1+e}
- (name = name.dump).gsub!(/\\#/, '#')
- comment = " // #{branch}" unless name == %["#{branch}"]
- code << "#define RUBY_BRANCH_NAME #{name}#{comment}"
+ name = name.dump.sub(/\\#/, '#')
+ code << "#define RUBY_BRANCH_NAME #{name}"
end
if title
title = title.dump.sub(/\\#/, '#')