Clones a local repository.