Commit 5cd218d7 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'dm-encode-tree-and-blob-paths' into 'master'

Fix issues with non-UTF8 filenames by always fixing the encoding of tree and blob paths

Closes #34529

See merge request !12636
parents dddfa49d 82614f86
---
title: Fix issues with non-UTF8 filenames by always fixing the encoding of tree and
blob paths
merge_request:
author:
...@@ -175,6 +175,10 @@ module Gitlab ...@@ -175,6 +175,10 @@ module Gitlab
encode! @name encode! @name
end end
def path
encode! @path
end
def truncated? def truncated?
size && (size > loaded_size) size && (size > loaded_size)
end end
......
...@@ -80,6 +80,10 @@ module Gitlab ...@@ -80,6 +80,10 @@ module Gitlab
encode! @name encode! @name
end end
def path
encode! @path
end
def dir? def dir?
type == :tree type == :tree
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment