MCPcopy Create free account
hub / github.com/Tele-AI/Fluxon / _run_dir_for

Function _run_dir_for

fluxon_test_stack/gitops/gitops_lib.py:745–748  ·  view source on GitHub ↗
(runs_dir: Path, addr: str, branch: str, commit: str)

Source from the content-addressed store, hash-verified

743def _safe_name(addr: str) -> str:
744 # Sanitize repo address to filesystem-friendly name
745 safe = addr
746 for ch in [":", "/", "\\", "@", " ", "."]:
747 safe = safe.replace(ch, "-")
748 while "--" in safe:
749 safe = safe.replace("--", "-")
750 return safe.strip("-")
751

Callers 2

_record_commit_runFunction · 0.85
_process_rerunMethod · 0.85

Calls 1

_safe_nameFunction · 0.85

Tested by

no test coverage detected