Skip to content

Increase the max amount of blob data to load from 1K to 10 MB

Stan Hu requested to merge stanhu/gitlab_git:increase-blob-data-read-size into master

Before we were only loading 1024 bytes, which could lead to false negative detection of binary data since binary characters could come after the 1024-byte mark. Instead, we should load as much data as we are willing to display to ensure that this does not happen.

Relates to gitlab-org/gitlab-ce#13826

Merge request reports