(commit)
| 315 | return commits |
| 316 | |
| 317 | def get_commit_branches(commit): |
| 318 | # print("git branch --contains %s" % commit) |
| 319 | result = subprocess.run(["git", "branch", "--contains", commit], capture_output = True) |
| 320 | out = result.stdout.decode('utf-8') |
| 321 | if result.returncode == 0: |
| 322 | return [line.replace("*", "").strip() for line in out.splitlines()] |
| 323 | red(result.stderr.decode('utf-8')) |
| 324 | sys.exit(result.returncode) |
| 325 | |
| 326 | def check_commit_branches(commit, branches): |
| 327 | result = get_commit_branches(commit) |
no test coverage detected