#19 add ref name

This commit is contained in:
Gorbunov Kirill Andreevich 2024-12-18 20:42:36 +03:00
parent 22ee50a20e
commit fd3315b12b

View File

@ -467,7 +467,7 @@ func (g Gitea) fetchCheckout(ctx context.Context, repo *git.Repository, branch,
var headRef *plumbing.Reference
targetBranch, err := repo.Branch(branch)
targetBranch, err := repo.Branch(plumbing.NewBranchReferenceName(branch).String())
if err != nil {
g.logger.Error(ctx, "cant get repo branch", err)
return nil, nil, err