MCPcopy Index your code
hub / github.com/Doorman11991/smallcode / run_git

Function run_git

scripts/rag_scraper.py:68–69  ·  view source on GitHub ↗
(args: Sequence[str], cwd: Optional[Path] = None)

Source from the content-addressed store, hash-verified

66
67
68def run_git(args: Sequence[str], cwd: Optional[Path] = None) -> None:
69 subprocess.run(["git", *args], cwd=str(cwd) if cwd else None, check=True, stdout=subprocess.DEVNULL)
70
71
72def safe_repo_name(url: str) -> str:

Callers 1

ensure_repoFunction · 0.85

Calls 1

runMethod · 0.45

Tested by

no test coverage detected