MCPcopy Create free account
hub / github.com/Jasonkks/PTTR / get_git_commit_number

Function get_git_commit_number

OpenPCDet/setup.py:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7
8def get_git_commit_number():
9 if not os.path.exists('.git'):
10 return '0000000'
11
12 cmd_out = subprocess.run(['git', 'rev-parse', 'HEAD'], stdout=subprocess.PIPE)
13 git_commit_number = cmd_out.stdout.decode('utf-8')[:7]
14 return git_commit_number
15
16
17def make_cuda_ext(name, module, sources):

Callers 1

setup.pyFile · 0.70

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected