cloneRepositoryTo

fun cloneRepositoryTo(url: String, targetDirectory: Path, branch: String? = null, depth: Int? = null): ClonedRepositoryReference

Clone a repository to a specific directory (not temporary). The returned ClonedRepository will not auto-delete on close.