fixup deps

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2023-10-02 01:38:12 +03:00
parent 63b04b1f0d
commit ded2906199
1 changed files with 2 additions and 2 deletions

View File

@ -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)