Skip to content

Commit c2444fc

Browse files
authored
Merge pull request #190 from mmizutani/fix/hard-coded-main-branch
2 parents c548fc9 + ba5d86a commit c2444fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tagpr.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -354,9 +354,9 @@ OUT:
354354

355355
// cherry-pick if the remote branch is exists and changed
356356
// XXX: Do I need to apply merge commits too?
357-
// (We ommited merge commits for now, because if we cherry-pick them, we need to add options like "-m 1".
358-
out, _, err := tp.c.Git(
359-
"log", "--no-merges", "--pretty=format:%h %s", "main.."+tp.remoteName+"/"+rcBranch)
357+
// (We omitted merge commits for now, because if we cherry-pick them, we need to add options like "-m 1".
358+
out, _, err := tp.c.Git("log", "--no-merges", "--pretty=format:%h %s",
359+
fmt.Sprintf("%s..%s/%s", releaseBranch, tp.remoteName, rcBranch))
360360
if err == nil {
361361
var cherryPicks []string
362362
for _, line := range strings.Split(out, "\n") {

0 commit comments

Comments
 (0)