diff options
author | James Edwards-Jones <jamedjo@gmail.com> | 2018-01-13 00:08:30 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2018-01-16 16:27:59 +0300 |
commit | c4dd7b82965c053ad1aa8aeb94e183805d897b74 (patch) | |
tree | e56b40245ed195c4bd610a72d0459a641faa6a13 /lib | |
parent | a52d8c101d86bb308cbb4a727dff0ecb37ff382f (diff) |
Prevent RevList failing on non utf8 paths
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/git/rev_list.rb | 2 |
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?) |