MCPcopy Create free account
hub / github.com/apache/solr / find_git_root

Function find_git_root

dev-tools/scripts/logchange.py:37–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35# ---------------------------------------------------------------------------
36
37def find_git_root() -> Path:
38 result = subprocess.run(
39 ["git", "rev-parse", "--show-toplevel"],
40 capture_output=True, text=True, check=True,
41 )
42 return Path(result.stdout.strip())
43
44
45def run(cmd, *, cwd, dry_run=False, check=True, capture=False):

Callers 1

mainFunction · 0.85

Calls 2

stripMethod · 0.80
runMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…