Don't use sprintf for pushRefspecs

This commit is contained in:
Mustafa Gezen 2021-04-13 06:36:44 +02:00
parent 3b0face514
commit 6cb6d239da

View File

@ -370,7 +370,7 @@ func ProcessRPM(pd *data.ProcessData) {
log.Fatalf("could not create tag: %v", err)
}
pushRefspecs = append(pushRefspecs, config.RefSpec(fmt.Sprintf("HEAD:%s", plumbing.NewTagReferenceName(newTag))))
pushRefspecs = append(pushRefspecs, config.RefSpec("HEAD:"+plumbing.NewTagReferenceName(newTag)))
err = repo.Push(&git.PushOptions{
RemoteName: "origin",