From 63b04b1f0d7f362fc38474f4c4fd1fa3fd9b65fc Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 2 Oct 2023 01:33:32 +0300 Subject: [PATCH] fixup deps Signed-off-by: Vasiliy Tolstov --- cmd/pkgdashcli/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/pkgdashcli/main.go b/cmd/pkgdashcli/main.go index 0185a66..966ff3f 100644 --- a/cmd/pkgdashcli/main.go +++ b/cmd/pkgdashcli/main.go @@ -270,8 +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 ref: %s", gitconfig.RefSpec(newref.String())) if err = repo.Push(&git.PushOptions{ - RefSpecs: []gitconfig.RefSpec{gitconfig.RefSpec(newref.String())}, + RefSpecs: []gitconfig.RefSpec{gitconfig.RefSpec(newref.String()) + ":" + gitconfig.RefSpec(newref.String())}, Auth: &httpauth.BasicAuth{Username: envTOKEN, Password: envTOKEN}, }); err != nil { logger.Fatalf(ctx, "failed to push repo branch: %v", err)