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

Function _run_git

tools/test_selector.py:153–163  ·  view source on GitHub ↗
(args: Sequence[str], cwd: Path)

Source from the content-addressed store, hash-verified

151# Git helpers
152# -----------------------------
153def _run_git(args: Sequence[str], cwd: Path) -> str:
154 proc = subprocess.run(
155 ["git", *args],
156 cwd=str(cwd),
157 capture_output=True,
158 text=True,
159 check=False,
160 )
161 if proc.returncode != 0:
162 raise RuntimeError(f"git {' '.join(args)} failed: {proc.stderr.strip()}")
163 return proc.stdout.strip()
164
165
166def find_repo_root() -> Path:

Callers 5

find_repo_rootFunction · 0.70
_ensure_commit_existsFunction · 0.70
_empty_treeFunction · 0.70
determine_diff_rangeFunction · 0.70
changed_filesFunction · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected