Clones a Git repository to a local folder.
(repo_url: str, repo_path: str)
| 509 | |
| 510 | |
| 511 | def _get_clone(repo_url: str, repo_path: str) -> str: |
| 512 | """Clones a Git repository to a local folder.""" |
| 513 | clone_process = subprocess.run( |
| 514 | ["git", "clone", repo_url, repo_path], |
| 515 | capture_output=True, |
| 516 | text=True, |
| 517 | check=True, |
| 518 | ) |
| 519 | return clone_process.stdout.strip() |
| 520 | |
| 521 | |
| 522 | def _git_grep( |
no test coverage detected