From fd3315b12b4d77400a1559cd5775d3ba27dccc31 Mon Sep 17 00:00:00 2001 From: Gorbunov Kirill Andreevich Date: Wed, 18 Dec 2024 20:42:36 +0300 Subject: [PATCH] #19 add ref name --- 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 1fb1dac..b39b4bb 100644 --- a/internal/source/gitea/gitea.go +++ b/internal/source/gitea/gitea.go @@ -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