1
1
/* eslint-disable security/detect-unsafe-regex */
2
2
import addressparser from "nodemailer/lib/addressparser/index.js" ;
3
3
import 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" ;
5
5
import { GitNotes } from "./git-notes.js" ;
6
6
import { IGitGitGadgetOptions } from "./gitgitgadget.js" ;
7
7
import { IMailMetadata } from "./mail-metadata.js" ;
@@ -138,9 +138,7 @@ export class PatchSeries {
138
138
throw new Error ( `Cannot find base branch ${ basedOn } ` ) ;
139
139
}
140
140
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 ) ;
144
142
if ( rangeDiff ) {
145
143
options . rangeDiff = rangeDiff ;
146
144
}
@@ -639,7 +637,7 @@ export class PatchSeries {
639
637
this . metadata . coverLetterMessageId = coverMid ;
640
638
641
639
logger . log ( "Generating tag message" ) ;
642
- let tagMessage = PatchSeries . generateTagMessage (
640
+ const tagMessage = PatchSeries . generateTagMessage (
643
641
mails [ 0 ] ,
644
642
mails . length > 1 ,
645
643
this . project . midUrlPrefix ,
@@ -657,16 +655,6 @@ export class PatchSeries {
657
655
658
656
this . metadata . latestTag = tagName ;
659
657
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
-
670
658
if ( this . options . noUpdate ) {
671
659
logger . log (
672
660
`Would generate tag ${ tagName } with message:\n\n ${ tagMessage
0 commit comments