From c6be5693ea9b044051caa37d4321912cf6c5cdad 2013-08-22 09:06:01 From: Min RK Date: 2013-08-22 09:06:01 Subject: [PATCH] Merge pull request #4094 from takluyver/backport-pull-target Update target branch before backporting PR --- diff --git a/tools/backport_pr.py b/tools/backport_pr.py index b48808e..de7f731 100755 --- a/tools/backport_pr.py +++ b/tools/backport_pr.py @@ -37,6 +37,7 @@ def backport_pr(branch, num, project='ipython/ipython'): current_branch = get_current_branch() if branch != current_branch: check_call(['git', 'checkout', branch]) + check_call(['git', 'pull']) pr = get_pull_request(project, num, auth=True) files = get_pull_request_files(project, num, auth=True) patch_url = pr['patch_url']