From f7d5f1334c99e9f7d66c8706e914d60bc7aaf6af Mon Sep 17 00:00:00 2001 From: Gorbunov Kirill Andreevich Date: Wed, 18 Dec 2024 20:18:54 +0300 Subject: [PATCH] #19 change targetBranch --- internal/source/gitea/gitea.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/source/gitea/gitea.go b/internal/source/gitea/gitea.go index 80b0baa..c3c513c 100644 --- a/internal/source/gitea/gitea.go +++ b/internal/source/gitea/gitea.go @@ -538,7 +538,7 @@ func (g Gitea) fetchCheckout(ctx context.Context, repo *git.Repository, branch, if pullExist { if err = wtree.Checkout(&git.CheckoutOptions{ - Branch: plumbing.NewBranchReferenceName(branch), + Branch: headRef.Name(), Create: false, Force: true, }); err != nil && err != git.ErrBranchExists {