summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-01-16 20:47:17 +0000
committerStan Hu <stanhu@gmail.com>2018-01-16 20:47:17 +0000
commit3228ac06a019c9126b965ff32e354d10011a4f76 (patch)
treefbc82885a39e4f3de96dbb376e3ee4c0abff05a7 /lib
parentf17d7a4beef61d0156865f1a9070fb53c8f05c99 (diff)
parentc4dd7b82965c053ad1aa8aeb94e183805d897b74 (diff)
downloadgitlab-ce-3228ac06a019c9126b965ff32e354d10011a4f76.tar.gz
Merge branch 'jej/lfs-rev-list-handles-non-utf-paths-41627' into 'master'
Prevent RevList failing on non utf8 paths Closes #41627 See merge request gitlab-org/gitlab-ce!16440
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?)