forcing encoding to UTF-8 for git tree to be able to use gollum with non-ascii wiki filenames
This commit is contained in:
@@ -158,6 +158,7 @@ module Gollum
|
||||
def tree!(sha)
|
||||
tree = @repo.git.native(:ls_tree,
|
||||
{:r => true, :l => true, :z => true}, sha)
|
||||
tree.force_encoding("UTF-8")
|
||||
items = tree.split("\0").inject([]) do |memo, line|
|
||||
memo << parse_tree_line(line)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user