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
path: root/lib
diff options
context:
space:
mode:
authorJames Edwards-Jones <jamedjo@gmail.com>2018-01-13 00:08:30 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2018-01-16 16:27:59 +0300
commitc4dd7b82965c053ad1aa8aeb94e183805d897b74 (patch)
treee56b40245ed195c4bd610a72d0459a641faa6a13 /lib
parenta52d8c101d86bb308cbb4a727dff0ecb37ff382f (diff)
Prevent RevList failing on non utf8 paths
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/git/rev_list.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/git/rev_list.rb b/lib/gitlab/git/rev_list.rb
index 4974205b8fd..f8b2e7e0e21 100644
--- a/lib/gitlab/git/rev_list.rb
+++ b/lib/gitlab/git/rev_list.rb
@@ -95,7 +95,7 @@ module Gitlab
object_output.map do |output_line|
sha, path = output_line.split(' ', 2)
- next if require_path && path.blank?
+ next if require_path && path.to_s.empty?
sha
end.reject(&:nil?)