Load the proxy data for is_text as well

Otherwise the text state changes over time
This commit is contained in:
Stephan Kulow
2022-11-04 20:04:46 +01:00
parent 7f88e0cc5c
commit 0bcc0183c9
2 changed files with 10 additions and 5 deletions

View File

@@ -72,7 +72,7 @@ class GitExporter:
def commit_file(self, flat, file, size, md5):
# have such files been detected as text mimetype before?
is_text = self.proxy_sha256.is_text(file.name)
is_text = self.proxy_sha256.is_text(flat.commit.package, file.name)
if not is_text and is_binary_or_large(file.name, size):
file_sha256 = self.proxy_sha256.get_or_put(
flat.commit.project,