#8 change checkout.

This commit is contained in:
Gorbunov Kirill Andreevich 2024-04-09 00:44:19 +03:00
parent a18e12bfc4
commit d7ace1aef4

View File

@ -460,7 +460,7 @@ func checkout(w *git.Worktree, ref plumbing.Reference) {
logger.Debug(ctx, fmt.Sprintf("Checkout: %s", ref.Name().Short()))
if err := w.Checkout(&git.CheckoutOptions{
Branch: plumbing.ReferenceName(ref.Name().String()),
Branch: ref.Name(),
}); err != nil {
logger.Error(ctx, fmt.Sprintf("failed to reset: %v", err))
}