Pulls the latest changes from a Git repository.
(repo_path: str)
| 497 | |
| 498 | |
| 499 | def _get_pull(repo_path: str) -> str: |
| 500 | """Pulls the latest changes from a Git repository.""" |
| 501 | pull_process = subprocess.run( |
| 502 | ["git", "pull"], |
| 503 | cwd=repo_path, |
| 504 | capture_output=True, |
| 505 | text=True, |
| 506 | check=True, |
| 507 | ) |
| 508 | return pull_process.stdout.strip() |
| 509 | |
| 510 | |
| 511 | def _get_clone(repo_url: str, repo_path: str) -> str: |
no test coverage detected