Skip to content

Explicit push location to ignore user git config #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Explicit push location to ignore user git config
Users can configure what strategy "git push" uses to determine which
remote branch it should push to.  Cherry-picker doesn't work with all of
the git push strategies but we can make explicit what the remote branch
should be which works around that problem.
  • Loading branch information
abadger committed Jun 16, 2018
commit 90917bf8b2b805889fe10eb5876f43a9b338b2ca
2 changes: 1 addition & 1 deletion cherry_picker/cherry_picker/cherry_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def amend_commit_message(self, cherry_pick_branch):
def push_to_remote(self, base_branch, head_branch, commit_message=""):
""" git push <origin> <branchname> """

cmd = ['git', 'push', self.pr_remote, head_branch]
cmd = ['git', 'push', self.pr_remote, f'{head_branch}:{head_branch}']
try:
self.run_cmd(cmd)
except subprocess.CalledProcessError:
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy