MCPcopy Index your code
hub / github.com/usestrix/strix / _run_git_command

Function _run_git_command

strix/interface/utils.py:510–518  ·  view source on GitHub ↗
(
    repo_path: Path, args: list[str], check: bool = True
)

Source from the content-addressed store, hash-verified

508
509
510def _run_git_command(
511 repo_path: Path, args: list[str], check: bool = True
512) -> subprocess.CompletedProcess[str]:
513 return subprocess.run( # noqa: S603
514 ["git", "-C", str(repo_path), *args], # noqa: S607
515 capture_output=True,
516 text=True,
517 check=check,
518 )
519
520
521def _run_git_command_raw(

Callers 6

_is_git_repoFunction · 0.85
_is_repo_shallowFunction · 0.85
_git_ref_existsFunction · 0.85
_resolve_origin_head_refFunction · 0.85
_get_current_branch_nameFunction · 0.85
_resolve_repo_diff_scopeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected