diff --git a/cherry_picker/cherry_picker/cherry_picker.py b/cherry_picker/cherry_picker/cherry_picker.py index abf37b7..d974444 100755 --- a/cherry_picker/cherry_picker/cherry_picker.py +++ b/cherry_picker/cherry_picker/cherry_picker.py @@ -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 """ - 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: