Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaito <saitowu@gmail.com>2012-09-11 15:18:14 +0400
committerSaito <saitowu@gmail.com>2012-09-11 15:18:14 +0400
commit96d4f22e53a6176715f9557fb0707cb166a1dd80 (patch)
treecc5124d3a2c88df24df0261f846e5d2859c80ad8 /app/models/tree.rb
parent1c08cb404d5e874ae7d79a540e493bbf1f0d3061 (diff)
tree view need use ascii-8bit, file name need be utf8.
Diffstat (limited to 'app/models/tree.rb')
-rw-r--r--app/models/tree.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tree.rb b/app/models/tree.rb
index bc95d335520..d65e50ab817 100644
--- a/app/models/tree.rb
+++ b/app/models/tree.rb
@@ -16,7 +16,7 @@ class Tree
def initialize(raw_tree, project, ref = nil, path = nil)
@project, @ref, @path = project, ref, path,
@tree = if path
- raw_tree / path
+ raw_tree / path.dup.force_encoding('ascii-8bit')
else
raw_tree
end