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
Léo-Paul Géneau
gitlab-ce
Commits
a9783c43
Commit
a9783c43
authored
Jan 13, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make encoding of paths returned by metadata consistent (UTF-8)
parent
0b946029
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/gitlab/ci/build/artifacts/metadata.rb
lib/gitlab/ci/build/artifacts/metadata.rb
+3
-3
No files found.
lib/gitlab/ci/build/artifacts/metadata.rb
View file @
a9783c43
...
@@ -20,7 +20,7 @@ module Gitlab
...
@@ -20,7 +20,7 @@ module Gitlab
end
end
def
errors
def
errors
gzip
do
|
gz
|
gzip
do
|
gz
|
read_string
(
gz
)
# version
read_string
(
gz
)
# version
errors
=
read_string
(
gz
)
errors
=
read_string
(
gz
)
raise
StandardError
,
'Errors field not found!'
unless
errors
raise
StandardError
,
'Errors field not found!'
unless
errors
...
@@ -36,7 +36,7 @@ module Gitlab
...
@@ -36,7 +36,7 @@ module Gitlab
end
end
def
to_path
def
to_path
Path
.
new
(
@path
,
*
match!
)
Path
.
new
(
@path
.
dup
.
force_encoding
(
'UTF-8'
)
,
*
match!
)
end
end
private
private
...
@@ -88,7 +88,7 @@ module Gitlab
...
@@ -88,7 +88,7 @@ module Gitlab
def
read_string
(
gz
)
def
read_string
(
gz
)
string_size
=
read_uint32
(
gz
)
string_size
=
read_uint32
(
gz
)
return
false
unless
string_size
return
nil
unless
string_size
gz
.
read
(
string_size
)
gz
.
read
(
string_size
)
end
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