MCPcopy Index your code
hub / github.com/DeepLabCut/DeepLabCut / _run_git

Function _run_git

tools/docs_and_notebooks_check.py:391–398  ·  view source on GitHub ↗
(args: Sequence[str], cwd: Path)

Source from the content-addressed store, hash-verified

389
390
391def _run_git(args: Sequence[str], cwd: Path) -> tuple[int, str, str]:
392 p = subprocess.run(
393 ["git", *args],
394 cwd=str(cwd),
395 capture_output=True,
396 text=True,
397 )
398 return p.returncode, p.stdout.strip(), p.stderr.strip()
399
400
401def find_repo_root(start: Path) -> Path:

Callers 2

find_repo_rootFunction · 0.70
_git_log_dateFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected