MCPcopy Create free account
hub / github.com/ByteDance-Seed/Triton-distributed / get_git_commit_hash

Function get_git_commit_hash

python/setup.py:1187–1192  ·  view source on GitHub ↗
(length=8)

Source from the content-addressed store, hash-verified

1185 return entry_points
1186
1187
1188def get_git_commit_hash(length=8):
1189 try:
1190 cmd = ['git', 'rev-parse', f'--short={length}', 'HEAD']
1191 return "+git{}".format(subprocess.check_output(cmd).strip().decode('utf-8'))
1192 except Exception:
1193 return ""
1194
1195

Callers 1

get_git_version_suffixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected