Skip to content

Commit

Permalink
Merge pull request #190 from mmizutani/fix/hard-coded-main-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu authored Jan 7, 2025
2 parents c548fc9 + ba5d86a commit c2444fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tagpr.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ OUT:

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

0 comments on commit c2444fc

Please sign in to comment.