Repository was moved. Add error checking and commit the cache.