()
| 52 | yield os.path.join(dirname, fname) |
| 53 | |
| 54 | def get_current_branch(): |
| 55 | branches = check_output(['git', 'branch']) |
| 56 | for branch in branches.splitlines(): |
| 57 | if branch.startswith(b'*'): |
| 58 | return branch[1:].strip().decode('utf-8') |
| 59 | |
| 60 | def backport_pr(branch, num, project='ipython/ipython'): |
| 61 | current_branch = get_current_branch() |