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

Function _git

tests/tools/test_selector/test_selector_validation.py:13–23  ·  view source on GitHub ↗
(repo: Path, *args: str)

Source from the content-addressed store, hash-verified

11# Git helpers
12# -----------------
13def _git(repo: Path, *args: str) -> str:
14 proc = subprocess.run(
15 ["git", *args],
16 cwd=repo,
17 capture_output=True,
18 text=True,
19 check=False,
20 )
21 if proc.returncode != 0:
22 raise RuntimeError(f"git {' '.join(args)} failed: {proc.stderr.strip()}")
23 return proc.stdout.strip()
24
25
26def _init_repo(tmp_path: Path) -> Path:

Callers 3

_init_repoFunction · 0.85
_commit_fileFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected