mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Git branch name can contain #{}
too
This commit is contained in:
parent
19a4c42d61
commit
fc4dd7d3e2
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ vcs = nil
|
|||
e = '..'
|
||||
limit = @limit
|
||||
name = branch.sub(/\A(.{#{limit-e.size}}).{#{e.size+1},}/o) {$1+e}
|
||||
"#define RUBY_BRANCH_NAME #{name.dump}"
|
||||
name = name.dump.sub(/\\#/, '#')
|
||||
"#define RUBY_BRANCH_NAME #{name}"
|
||||
end,
|
||||
if title
|
||||
title = title.dump.sub(/\\#/, '#')
|
||||
|
|
Loading…
Reference in a new issue