11/* eslint-disable security/detect-unsafe-regex */
22import addressparser from "nodemailer/lib/addressparser/index.js" ;
33import mimeFuncs from "nodemailer/lib/mime-funcs/index.js" ;
4- import { commitExists , git , gitConfig , gitShortHash , revListCount , revParse } from "./git.js" ;
4+ import { commitExists , git , gitShortHash , revListCount , revParse } from "./git.js" ;
55import { GitNotes } from "./git-notes.js" ;
66import { IGitGitGadgetOptions } from "./gitgitgadget.js" ;
77import { IMailMetadata } from "./mail-metadata.js" ;
@@ -138,9 +138,7 @@ export class PatchSeries {
138138 throw new Error ( `Cannot find base branch ${ basedOn } ` ) ;
139139 }
140140
141- const publishToRemote : string | undefined = undefined ;
142-
143- const project = await ProjectOptions . get ( config , workDir , headCommit , cc , baseCommit , basedOn , publishToRemote ) ;
141+ const project = await ProjectOptions . get ( config , workDir , headCommit , cc , baseCommit , basedOn ) ;
144142 if ( rangeDiff ) {
145143 options . rangeDiff = rangeDiff ;
146144 }
@@ -639,7 +637,7 @@ export class PatchSeries {
639637 this . metadata . coverLetterMessageId = coverMid ;
640638
641639 logger . log ( "Generating tag message" ) ;
642- let tagMessage = PatchSeries . generateTagMessage (
640+ const tagMessage = PatchSeries . generateTagMessage (
643641 mails [ 0 ] ,
644642 mails . length > 1 ,
645643 this . project . midUrlPrefix ,
@@ -657,16 +655,6 @@ export class PatchSeries {
657655
658656 this . metadata . latestTag = tagName ;
659657
660- if ( this . project . publishToRemote ) {
661- const url = await gitConfig ( `remote.${ this . project . publishToRemote } .url` , this . project . workDir ) ;
662- if ( ! url ) {
663- throw new Error ( `remote ${ this . project . publishToRemote } lacks URL` ) ;
664- }
665-
666- logger . log ( "Inserting links" ) ;
667- tagMessage = PatchSeries . insertLinks ( tagMessage , url , tagName , this . project . basedOn ) ;
668- }
669-
670658 if ( this . options . noUpdate ) {
671659 logger . log (
672660 `Would generate tag ${ tagName } with message:\n\n ${ tagMessage
0 commit comments