Repository check fails on project with mirror data
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=17681) </details> <!--IssueSummary end--> #### Overview The repostiory check was reporting the following error because when mirroring was disabled, the `repo.git/refs/remotes/mirror/<branch_sha> `files had not been removed but were empty. To correct this, remove the files under `repo.git/refs/remotes/mirror` and reran the repository check to verify it completed successfully. ### Proposal Improve logging of the repository check. Unclear messaging, because the command: nice git --git-dir=/<repoDirectoryPath>/<repo>.git fsck did not fail as stated below: Tailing the repocheck.log file shows this: ``` E, [2017-04-03T10:28:08.865886 #27236] ERROR -- : command failed: nice git --git-dir=/var/opt/gitswarm/git-data/repositories/platform/entity-district.git fsck error: refs/remotes/mirror/CPF-778: invalid sha1 pointer 0000000000000000000000000000000000000000 ``` The error is due to a remote mirror not having the correct sha. ### Links / references + https://gitlab.zendesk.com/agent/tickets/71676
issue