Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
82614f86
Commit
82614f86
authored
Jul 04, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issues with non-UTF8 filenames by always fixing the encoding of tree and blob paths
parent
58990f1b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
changelogs/unreleased/dm-encode-tree-and-blob-paths.yml
changelogs/unreleased/dm-encode-tree-and-blob-paths.yml
+5
-0
lib/gitlab/git/blob.rb
lib/gitlab/git/blob.rb
+4
-0
lib/gitlab/git/tree.rb
lib/gitlab/git/tree.rb
+4
-0
No files found.
changelogs/unreleased/dm-encode-tree-and-blob-paths.yml
0 → 100644
View file @
82614f86
---
title
:
Fix issues with non-UTF8 filenames by always fixing the encoding of tree and
blob paths
merge_request
:
author
:
lib/gitlab/git/blob.rb
View file @
82614f86
...
...
@@ -175,6 +175,10 @@ module Gitlab
encode!
@name
end
def
path
encode!
@path
end
def
truncated?
size
&&
(
size
>
loaded_size
)
end
...
...
lib/gitlab/git/tree.rb
View file @
82614f86
...
...
@@ -80,6 +80,10 @@ module Gitlab
encode!
@name
end
def
path
encode!
@path
end
def
dir?
type
==
:tree
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment