MCPcopy 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
272def 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
279def get_default_python(python_runtimes):

Callers 5

buildFunction · 0.85
get_version_ldflagsFunction · 0.85
buildFunction · 0.85
runFunction · 0.85
buildFunction · 0.85

Calls

no outgoing calls

Tested by 1

runFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…