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
Boxiang Sun
gitlab-ce
Commits
73bd48de
Commit
73bd48de
authored
Jan 30, 2018
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix encoding issues when name is not UTF-8
parent
0a47d192
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
lib/gitlab/gitaly_client/ref_service.rb
lib/gitlab/gitaly_client/ref_service.rb
+8
-2
No files found.
lib/gitlab/gitaly_client/ref_service.rb
View file @
73bd48de
...
...
@@ -155,7 +155,10 @@ module Gitlab
stream
=
GitalyClient
.
call
(
@repository
.
storage
,
:ref_service
,
:list_tag_names_containing_commit
,
request
)
stream
.
each_with_object
([])
{
|
response
,
array
|
array
.
concat
(
response
.
tag_names
)
}
stream
.
each_with_object
([])
do
|
response
,
array
|
encoded_names
=
response
.
tag_names
.
map
{
|
t
|
Gitlab
::
Git
.
ref_name
(
t
)
}
array
.
concat
(
encoded_names
)
end
end
# Limit: 0 implies no limit, thus all tag names will be returned
...
...
@@ -168,7 +171,10 @@ module Gitlab
stream
=
GitalyClient
.
call
(
@repository
.
storage
,
:ref_service
,
:list_branch_names_containing_commit
,
request
)
stream
.
each_with_object
([])
{
|
response
,
array
|
array
.
concat
(
response
.
branch_names
)
}
stream
.
each_with_object
([])
do
|
response
,
array
|
encoded_names
=
response
.
branch_names
.
map
{
|
b
|
Gitlab
::
Git
.
ref_name
(
b
)
}
array
.
concat
(
encoded_names
)
end
end
private
...
...
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