Version control repair