MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / find_git_sha

Function find_git_sha

test/perf/compiled_extensions/command.py:47–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45
46
47def find_git_sha():
48 try:
49 git_res = subprocess.run(
50 ["git", "rev-parse", "--short", "HEAD"], stdout=subprocess.PIPE
51 )
52 return git_res.stdout.decode("utf-8").strip()
53 except Exception:
54 return None
55
56
57def main():

Callers 1

mainFunction · 0.85

Calls 2

stripMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected