@@ -182,7 +182,7 @@ func runMRCreate(cmd *cobra.Command, args []string) {
182
182
title , body = msgs [0 ], strings .Join (msgs [1 :], "\n \n " )
183
183
} else {
184
184
coverLetterFormat , _ := cmd .Flags ().GetBool ("cover-letter" )
185
- msg , err := mrText (targetBranch , branch , sourceRemote , forkedFromRemote , coverLetterFormat )
185
+ msg , err := mrText (targetBranch , branch , sourceRemote , targetRemote , coverLetterFormat )
186
186
if err != nil {
187
187
log .Fatal (err )
188
188
}
@@ -286,12 +286,12 @@ func determineSourceRemote(branch string) string {
286
286
return forkRemote
287
287
}
288
288
289
- func mrText (base , head , sourceRemote , forkedFromRemote string , coverLetterFormat bool ) (string , error ) {
289
+ func mrText (base , head , sourceRemote , targetRemote string , coverLetterFormat bool ) (string , error ) {
290
290
var (
291
291
commitMsg string
292
292
err error
293
293
)
294
- remoteBase := fmt .Sprintf ("%s/%s" , forkedFromRemote , base )
294
+ remoteBase := fmt .Sprintf ("%s/%s" , targetRemote , base )
295
295
commitMsg = ""
296
296
if git .NumberCommits (remoteBase , head ) == 1 {
297
297
commitMsg , err = git .LastCommitMessage ()
@@ -344,7 +344,7 @@ func mrText(base, head, sourceRemote, forkedFromRemote string, coverLetterFormat
344
344
InitMsg : commitMsg ,
345
345
Tmpl : mrTmpl ,
346
346
CommentChar : commentChar ,
347
- Base : forkedFromRemote + ":" + base ,
347
+ Base : targetRemote + ":" + base ,
348
348
Head : sourceRemote + ":" + head ,
349
349
CommitLogs : commitLogs ,
350
350
}
0 commit comments