Repository check fails on project with mirror data
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
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=//.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
Edited by 🤖 GitLab Bot 🤖