Skip to content

Commit 0837b57

Browse files
committed
🚑 Check commit number against upstream branch
Previously, the `git log` command would run against an unresolved branch reference which might point to the wrong thing locally. This patch makes it more predictable by specifying the exact remote branch. Fixes #155.
1 parent cb7fdc1 commit 0837b57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cherry_picker/cherry_picker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ def continue_cherry_pick(self):
636636
]
637637
self.commit_sha1 = get_full_sha_from_short(short_sha)
638638

639-
commits = get_commits_from_backport_branch(base)
639+
commits = get_commits_from_backport_branch(f"{self.upstream_remote}/{base}")
640640
if len(commits) == 1:
641641
commit_message = self.amend_commit_message(cherry_pick_branch)
642642
else:

0 commit comments

Comments
 (0)