MCPcopy Create free account
hub / github.com/cxapython/catvm / get_commit_id

Function get_commit_id

selenium/deploy.py:31–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 return result
30
31def get_commit_id():
32 # check if git repository is clean
33 repo = git.Repo(cur_dir)
34 if repo.is_dirty():
35 print('git repository is dirty, please commit first.')
36 sys.exit(1)
37 commit_id = repo.head.commit.hexsha[:10]
38 return commit_id
39
40def prepare_setup(d):
41 # template inflate

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected