Defect #21141 ยป 0001-Force-encoding-of-git-branches-and-tags-to-UTF-8.patch
| lib/redmine/scm/adapters/git_adapter.rb | ||
|---|---|---|
|
bran.revision = branch_rev[3]
|
||
|
bran.scmid = branch_rev[3]
|
||
|
bran.is_default = ( branch_rev[1] == '*' )
|
||
|
bran.force_encoding("UTF-8") if bran.respond_to?(:force_encoding)
|
||
|
@branches << bran
|
||
|
end
|
||
|
end
|
||
| ... | ... | |
|
@tags = []
|
||
|
cmd_args = %w|tag|
|
||
|
git_cmd(cmd_args) do |io|
|
||
|
@tags = io.readlines.sort!.map{|t| t.strip}
|
||
|
@tags = io.readlines.sort!.map do |tag|
|
||
|
tag = tag.strip
|
||
|
tag.force_encoding("UTF-8") if tag.respond_to?(:force_encoding)
|
||
|
tag
|
||
|
end
|
||
|
end
|
||
|
@tags
|
||
|
rescue ScmCommandAborted
|
||