#8 change checkout.
This commit is contained in:
parent
a18e12bfc4
commit
d7ace1aef4
@ -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))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user