(repo_path, n=20)
| 775 | |
| 776 | |
| 777 | def git_recent_commits(repo_path, n=20): |
| 778 | returncode, stdout, _stderr = run_get_output([GIT(), 'log', '-n', str(n), '--pretty="%H"'], cwd=repo_path) |
| 779 | if returncode == 0: |
| 780 | return stdout.strip().replace('\r', '').replace('"', '').split('\n') |
| 781 | else: |
| 782 | return [] |
| 783 | |
| 784 | |
| 785 | def get_git_remotes(repo_path): |
no test coverage detected