diff --git a/internal/repository/lock_file.go b/internal/repository/lock_file.go index ac83cd9e0..45685a165 100644 --- a/internal/repository/lock_file.go +++ b/internal/repository/lock_file.go @@ -185,11 +185,7 @@ func (l *lockHandle) checkForOtherLocks(ctx context.Context) error { return err } - if l.Exclusive { - return &alreadyLockedError{otherLock: lock} - } - - if !l.Exclusive && lock.Exclusive { + if l.Exclusive || lock.Exclusive { return &alreadyLockedError{otherLock: lock} }