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

Function get_commit_id

selenium/deploy_aws.py:33–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected