BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
dm-encode-tree-and-blob-paths.yml
changelogs/unreleased/dm-encode-tree-and-blob-paths.yml
+5
-0
blob.rb
lib/gitlab/git/blob.rb
+4
-0
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