()
| 29 | return result |
| 30 | |
| 31 | def 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 | |
| 40 | def prepare_setup(d): |
| 41 | # template inflate |