MCPcopy Index your code
hub / github.com/streamlit/streamlit / _run_git_command

Function _run_git_command

e2e_playwright/load_testing/conftest.py:239–244  ·  view source on GitHub ↗

Run a git command and return output, or 'unknown' on failure.

(args: list[str])

Source from the content-addressed store, hash-verified

237
238
239def _run_git_command(args: list[str]) -> str:
240 """Run a git command and return output, or 'unknown' on failure."""
241 try:
242 return subprocess.check_output(args, cwd=get_git_root(), text=True).strip()
243 except (subprocess.CalledProcessError, RuntimeError):
244 return "unknown"
245
246
247def _get_git_info() -> tuple[str, str]:

Callers 1

_get_git_infoFunction · 0.85

Calls 1

get_git_rootFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…