diff --git a/cmd/pkgdashcli/main.go b/cmd/pkgdashcli/main.go index 072e54a..6e662b1 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -270,9 +270,9 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules. logger.Fatalf(ctx, "failed to commit: %v", err) } - logger.Infof(ctx, "try to push %s to %s", newref.String(), newref.String()) + logger.Infof(ctx, "try to push %s", newref.Name().String()) if err = repo.Push(&git.PushOptions{ - RefSpecs: []gitconfig.RefSpec{gitconfig.RefSpec(newref.String() + ":" + newref.String())}, + RefSpecs: []gitconfig.RefSpec{gitconfig.RefSpec(newref.Name().String() + ":" + newref.Name().String())}, Auth: &httpauth.BasicAuth{Username: envTOKEN, Password: envTOKEN}, }); err != nil { logger.Fatalf(ctx, "failed to push repo branch: %v", err)