#8 Checkout, auth. #16
@ -460,7 +460,7 @@ func checkout(w *git.Worktree, ref plumbing.Reference) {
|
|||||||
logger.Debug(ctx, fmt.Sprintf("Checkout: %s", ref.Name().Short()))
|
logger.Debug(ctx, fmt.Sprintf("Checkout: %s", ref.Name().Short()))
|
||||||
|
|
||||||
if err := w.Checkout(&git.CheckoutOptions{
|
if err := w.Checkout(&git.CheckoutOptions{
|
||||||
Branch: plumbing.ReferenceName(ref.Name().String()),
|
Branch: ref.Name(),
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
logger.Error(ctx, fmt.Sprintf("failed to reset: %v", err))
|
logger.Error(ctx, fmt.Sprintf("failed to reset: %v", err))
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user