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

Function get_git_branch

python/setup.py:1195–1200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1193 return ""
1194
1195
1196def get_git_branch():
1197 try:
1198 cmd = ['git', 'rev-parse', '--abbrev-ref', 'HEAD']
1199 return subprocess.check_output(cmd).strip().decode('utf-8')
1200 except Exception:
1201 return ""
1202
1203

Callers 1

get_git_version_suffixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected