#8 change checkout.

This commit is contained in:
Gorbunov Kirill Andreevich 2024-04-21 15:29:22 +03:00
parent 58da3e6d10
commit cb209a6a7a

View File

@ -461,6 +461,7 @@ func checkout(w git.Worktree, ref plumbing.Reference) {
if err := w.Checkout(&git.CheckoutOptions{ if err := w.Checkout(&git.CheckoutOptions{
Branch: ref.Name(), Branch: ref.Name(),
Create: false,
Force: true, Force: true,
Keep: false, Keep: false,
}); err != nil { }); err != nil {