mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2024-12-04 18:36:26 +00:00
Don't use sprintf for pushRefspecs
This commit is contained in:
parent
3b0face514
commit
6cb6d239da
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user