mirror of
https://github.com/dolthub/dolt.git
synced 2026-03-14 19:20:44 -05:00
Missed error check
This commit is contained in:
@@ -406,7 +406,9 @@ OPTIMISTIC_RETRY:
|
||||
switch remoteRef.Ref.GetType() {
|
||||
case ref.BranchRefType:
|
||||
err := rrd.createNewBranchFromRemote(ctx, remoteRef, trackingRef)
|
||||
if err != nil {
|
||||
if errors.Is(err, datas.ErrOptimisticLockFailed) {
|
||||
continue OPTIMISTIC_RETRY
|
||||
} else if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user