Permalink
Browse files

forcing encoding to UTF-8 for git tree to be able to use gollum with …

…non-ascii wiki filenames
  • Loading branch information...
1 parent 9ce4f02 commit 685cc358b33e921e2bbcf8b0a3ddd21a5c42e1dd @bobrik bobrik committed Sep 9, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/gollum/git_access.rb
@@ -158,6 +158,7 @@ def ref_to_sha!(ref)
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

0 comments on commit 685cc35

Please sign in to comment.