MCPcopy Create free account
hub / github.com/Open-Quant/openquant / _git_sha

Function _git_sha

experiments/run_pipeline.py:25–30  ·  view source on GitHub ↗
(repo_root: Path)

Source from the content-addressed store, hash-verified

23
24
25def _git_sha(repo_root: Path) -> str:
26 try:
27 out = subprocess.check_output(["git", "-C", str(repo_root), "rev-parse", "HEAD"], text=True)
28 return out.strip()
29 except Exception:
30 return "unknown"
31
32
33def _dataset_from_cfg(cfg: dict) -> tuple[object, dict]:

Callers 2

_write_run_artifactsFunction · 0.85
run_gridFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected