#19 #20
@ -538,7 +538,7 @@ func (g Gitea) fetchCheckout(ctx context.Context, repo *git.Repository, branch,
|
|||||||
|
|
||||||
if pullExist {
|
if pullExist {
|
||||||
if err = wtree.Checkout(&git.CheckoutOptions{
|
if err = wtree.Checkout(&git.CheckoutOptions{
|
||||||
Branch: plumbing.NewBranchReferenceName(branch),
|
Branch: headRef.Name(),
|
||||||
Create: false,
|
Create: false,
|
||||||
Force: true,
|
Force: true,
|
||||||
}); err != nil && err != git.ErrBranchExists {
|
}); err != nil && err != git.ErrBranchExists {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user