mirror of
https://github.com/rocky-linux/srpmproc.git
synced 2025-01-06 00:20:56 +00:00
Don't use sprintf for pushRefspecs
This commit is contained in:
parent
3b0face514
commit
6cb6d239da
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue