Run a git subcommand, raising :class:`GitError` on failure.
(self, *args)
| 50 | # Low-level subprocess passthrough (legacy contract) |
| 51 | # ------------------------------------------------------------------ |
| 52 | def _run_git_command(self, *args): |
| 53 | """Run a git subcommand, raising :class:`GitError` on failure.""" |
| 54 | try: |
| 55 | return _GitCommand._run(*[a for a in args if a]) |
| 56 | except Exception as exc: # _git.GitError → legacy GitError |
| 57 | raise GitError(str(exc)) from exc |
| 58 | |
| 59 | # ------------------------------------------------------------------ |
| 60 | # URL / token helpers |
no test coverage detected