(
self, local_path: str, remote_url: str, branch: str, username: str, password: str, force: bool = False
)
| 86 | return commit_hash.decode() |
| 87 | |
| 88 | def push( |
| 89 | self, local_path: str, remote_url: str, branch: str, username: str, password: str, force: bool = False |
| 90 | ) -> None: |
| 91 | branch = branch.encode() if branch else porcelain.active_branch(local_path) |
| 92 | with reraise(Exception, IntegrationError): |
| 93 | porcelain.push(local_path, remote_url, refspecs=branch, force=force, username=username, password=password) |
| 94 | |
| 95 | def status(self, local_path: str) -> GitStatus: |
| 96 | status = porcelain.status(local_path) |