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