reset corrupt repo