(repo_path)
| 783 | |
| 784 | |
| 785 | def get_git_remotes(repo_path): |
| 786 | remotes = [] |
| 787 | output = subprocess.check_output([GIT(), 'remote', '-v'], stderr=subprocess.STDOUT, text=True, cwd=repo_path) |
| 788 | for line in output.splitlines(): |
| 789 | remotes += [line.split()[0]] |
| 790 | return remotes |
| 791 | |
| 792 | |
| 793 | def git_clone(url, dstpath, branch, remote_name='origin'): |