#8 Checkout, auth. #16

Closed
kgorbunov wants to merge 104 commits from kgorbunov/pkgdash:dev into master
Showing only changes of commit d7ace1aef4 - Show all commits

View File

@ -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))
} }