Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
47
def
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
57
def
main():
Callers
1
main
Function · 0.85
Calls
2
strip
Method · 0.80
run
Method · 0.45
Tested by
no test coverage detected