#19 change targetBranch

This commit is contained in:
Gorbunov Kirill Andreevich 2024-12-18 20:18:54 +03:00
parent 42fdbeba31
commit f7d5f1334c

View File

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