diff --git a/cmd/pkgdashcli/main.go b/cmd/pkgdashcli/main.go index 1027b32..758763c 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -285,6 +285,7 @@ func giteaPullRequest(ctx context.Context, cfg *Config, mods map[string]modules. if err = repo.Push(&git.PushOptions{ RefSpecs: []gitconfig.RefSpec{gitconfig.RefSpec(newref.Name().String() + ":" + newref.Name().String())}, Auth: &httpauth.BasicAuth{Username: envTOKEN, Password: envTOKEN}, + Force: true, }); err != nil { logger.Fatalf(ctx, "failed to push repo branch: %v", err) }