diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-05-09 01:02:59 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-05-09 01:02:59 +0900 |
commit | e9378788837f7d053df4339ac0a0ea1d683502a4 (patch) | |
tree | 130854db963adb9f13b50657ec6d972a53e327ba /tool | |
parent | 26446cccc9e8c4dfb7655ae686106a1ee200f2ec (diff) | |
download | ruby-e9378788837f7d053df4339ac0a0ea1d683502a4.tar.gz |
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')
-rw-r--r-- | tool/lib/vcs.rb | 5 |
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(/\\#/, '#') |