Refactor redot into external update-git-repo