#19 change targetBranch
This commit is contained in:
parent
42fdbeba31
commit
f7d5f1334c
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user