Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicael Bergeron <mbergeron@gitlab.com>2017-09-12 17:07:31 +0300
committerRémy Coutable <remy@rymai.me>2017-09-12 17:07:31 +0300
commita31e0aff224d4047e10fae98b6f9dc9f84b7457a (patch)
tree6e2367f91fd008227a44eab0408c872336249b80 /lib/gitlab/git.rb
parent30db01b2edd2a5ea12aff6b60bbc4bb60ed6d2d2 (diff)
Resolve "Error 500 in non-UTF8 branch names"
Diffstat (limited to 'lib/gitlab/git.rb')
-rw-r--r--lib/gitlab/git.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git.rb b/lib/gitlab/git.rb
index 8c9acbc9fbe..b4b6326cfdd 100644
--- a/lib/gitlab/git.rb
+++ b/lib/gitlab/git.rb
@@ -11,7 +11,7 @@ module Gitlab
include Gitlab::EncodingHelper
def ref_name(ref)
- encode! ref.sub(/\Arefs\/(tags|heads|remotes)\//, '')
+ encode_utf8(ref).sub(/\Arefs\/(tags|heads|remotes)\//, '')
end
def branch_name(ref)