Reinitializing repository after file corruption.