You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 11, 2020. It is now read-only.
worktree.go has a dedicated ErrNonFastForwardUpdate error which should be used instead.
The main issue is that these two bits of code work differently:
err:=w.PullContext(ctx, options) // might return a git.ErrNonFastForwardUpdateiferr!=nil&&err==git.ErrNonFastForwardUpdate {
// this code might get executed
}
err:=r.PushContext(ctx, options) // might return result of fmt.Errorf("non-fast-forward update: %s", cmd.Name.String())iferr!=nil&&err==git.ErrNonFastForwardUpdate {
// this code can never get executed
}