Allow zeroPaddedFilemode git-fsck errors during git push


From: omnibus-gitlab#1602 (closed)

Git fsck is used for (too) many different repository integrity checks, including security problems. We've been using this when accepting git pushes into GitLab to detect malformed repositories.

The problem with this is that since we 'fsck' every push, GitLab has been rejecting repositories that get flagged by git fsck for non-security reasons such as zero-padded file modes. This prevents users from pushing certain legacy repositories to GitLab servers.

To let these users push their repositories to GitLab we should white-list the zeroPaddedFilemode fsck 'error'.


Edited by Jacob Vosmaer