(repo_url: str, temp_repo_path: str, branch: str)
| 90 | |
| 91 | |
| 92 | def initialize_repo(repo_url: str, temp_repo_path: str, branch: str) -> None: |
| 93 | print(f"Cloning repo {repo_url} to {temp_repo_path}") |
| 94 | execute(["git", "clone", repo_url, temp_repo_path]) |
| 95 | if branch is not None: |
| 96 | print(f"Checking out branch {branch}") |
| 97 | execute(["git", "-C", temp_repo_path, "checkout", branch]) |
| 98 | |
| 99 | |
| 100 | def get_commits(repo_folder_path: str, commit_range: str) -> list[tuple[str, str]]: |