(
self, cmd: tc_build.utils.CmdList, capture_output: bool = False
)
| 120 | self.git(['checkout', ref]) |
| 121 | |
| 122 | def git( |
| 123 | self, cmd: tc_build.utils.CmdList, capture_output: bool = False |
| 124 | ) -> subprocess.CompletedProcess: |
| 125 | return subprocess.run( |
| 126 | ['git', *cmd], capture_output=capture_output, check=True, cwd=self.repo, text=True |
| 127 | ) |
| 128 | |
| 129 | def git_capture(self, cmd: tc_build.utils.CmdList) -> str: |
| 130 | return self.git(cmd, capture_output=True).stdout.strip() |
no outgoing calls
no test coverage detected