diff --git a/cmd/pkgdashcli/main.go b/cmd/pkgdashcli/main.go index 02661a3..315c9fc 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -287,6 +287,11 @@ func giteaPullRequest(ctx context.Context, cfg *Config, branch string, mods map[ logger.Fatalf(ctx, "failed to reset repo branch: %v", err) } + if err = wtree.PullContext(&git.PullOptions{Force:true, RemoteName: "origin"}); err != nil { + logger.Fatalf(ctx, "failed to pull repo: %v", err) + } + } + logger.Infof(ctx, "checkout ref %s", headRef) if err = wtree.Checkout(&git.CheckoutOptions{ Hash: headRef.Hash(),