summaryrefslogtreecommitdiff
path: root/tool/lib/vcs.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-05-09 01:02:59 +0900
committerNobuyoshi Nakada <[email protected]>2024-05-09 01:02:59 +0900
commite9378788837f7d053df4339ac0a0ea1d683502a4 ()
tree130854db963adb9f13b50657ec6d972a53e327ba /tool/lib/vcs.rb
parent26446cccc9e8c4dfb7655ae686106a1ee200f2ec (diff)
Revert "Update revision.h if branch unmatch not only revision"
This reverts commit 5a332940ed2f809cb17af7e4d068089b6e1fa6ca. Something does not work well on Actions.
-rw-r--r--tool/lib/vcs.rb5
1 files changed, 2 insertions, 3 deletions
@@ -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}"
end
if title
title = title.dump.sub(/\\#/, '#')