Partial repo loss

For example this thread goes into the same area of question regarding data loss: Corrupted repo, how to repair?