MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _run_git

Function _run_git

deployments/desktop/shared/agents.py:1356–1372  ·  view source on GitHub ↗
(
    args: List[str],
    cwd: Path,
    *,
    check: bool = True,
    timeout: int = 60,
    input: Optional[str] = None,
)

Source from the content-addressed store, hash-verified

1354 for file_path in path.rglob("*"):
1355 if not file_path.is_file():
1356 continue
1357 if file_path.name.startswith("."):
1358 continue
1359 archive.write(file_path, arcname=f"{label}/{file_path.relative_to(path)}")
1360 count += 1
1361 return {"format": "zip", "path": str(output), "display_path": _display_path(output), "count": count}
1362
1363 raise ValueError("export_format must be markdown or zip")
1364
1365
1366def _run_git(
1367 args: List[str],
1368 cwd: Path,
1369 *,
1370 check: bool = True,
1371 timeout: int = 60,
1372 input: Optional[str] = None,
1373) -> subprocess.CompletedProcess[str]:
1374 return subprocess.run(
1375 ["git", *args],

Callers 6

_git_outputFunction · 0.85
_ensure_notes_git_repoFunction · 0.85
_rebase_notes_branchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected