References:
Could pagure be made a bit more clever?
I've already been trying to improve things as pygit2 0.22.0 has a different behavior has 0.21.4 but apparently there is still more work.
If you have ideas, I'll welcome them :)
Note this is the custom method that is used in addition to libgit2's is_binary to try to figure out if a file is a binary or not:
is_binary
https://pagure.io/pagure/blob/master/f/pagure/lib/init.py#_2406
I tried reproducing this issue locally but couldn't.
I think it got fixed by: https://pagure.io/pagure/pull-request/452
That would be great, looking forward to new version :)
Found out new version has already been rolled out as the content is displayed now. However not entirely correctly: #494.