Skip to content
This repository was archived by the owner on Nov 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #76 from sileht/tracking-D
Browse files Browse the repository at this point in the history
-D: Fix tracked upstream branch
  • Loading branch information
mergify[bot] authored Aug 21, 2019
2 parents 95fe9ea + 1dc7d40 commit 556ffdd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions git_pull_request/__init__.py
Original file line number Diff line number Diff line change
@@ -355,15 +355,12 @@ def download_pull_request(g, repo, target_remote, pull_number,

if setup_remote:
remote_name = "github-%s" % pull.user.login
remote_branch = pull.head.ref
remote_to_push = remote_name + "/" + remote_branch
remote = git_remote_url(remote_name, raise_on_error=False)
if not remote:
_run_shell_command(["git", "remote", "add", remote_name,
pull.head.repo.clone_url])
_run_shell_command(["git", "fetch", remote_name])
_run_shell_command(["git", "branch", "-u", remote_to_push,
local_branch_name])
_run_shell_command(["git", "branch", "-u", "origin", pull.base.ref])


def edit_file_get_content_and_remove(filename):

0 comments on commit 556ffdd

Please sign in to comment.