Replace repository