Implement repository cloning and updating