search-api: don't escape files exposed by the full-text-search API.

- we couldn't index special types of files because of that
This commit is contained in:
Marcin Kuzminski 2019-02-17 23:32:23 +01:00
parent 8a8dbab698
commit c193eff441

View file

@ -668,11 +668,9 @@ class ScmModel(BaseModel):
for __, dirs, files in commit.walk(root_path):
for f in files:
_content = None
_data = f_name = f.unicode_path
is_binary, md5, size, _content = f.metadata_uncached()
_data = {
"name": h.escape(f_name),
"name": f.unicode_path,
"md5": md5,
"extension": f.extension,
"binary": is_binary,