Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DataDog/datadog-agent
/ get_git_commit
Function
get_git_commit
tasks/utils.py:272–276 ·
view source on GitHub ↗
Get the current commit
()
Source
from the content-addressed store, hash-verified
270
271
272
def
get_git_commit():
273
""
"
274
Get the current commit
275
""
"
276
return
check_output([
'git'
,
'rev-parse'
,
'--short'
,
'HEAD'
]).decode(
'utf-8'
).strip()
277
278
279
def
get_default_python(python_runtimes):
Callers
5
build
Function · 0.85
get_version_ldflags
Function · 0.85
build
Function · 0.85
run
Function · 0.85
build
Function · 0.85
Calls
no outgoing calls
Tested by
1
run
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…