#19 add ref name
This commit is contained in:
parent
22ee50a20e
commit
fd3315b12b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user