commands/uploader: allow object upload for undefined verification state
This commit is contained in:
parent
43776b6ffd
commit
e4fa65b4f0
@ -227,13 +227,15 @@ func (c *uploadContext) prepareUpload(unfiltered ...*lfs.WrappedPointer) (*tq.Tr
|
|||||||
c.unownedLocks = append(c.unownedLocks, lock)
|
c.unownedLocks = append(c.unownedLocks, lock)
|
||||||
c.trackedLocksMu.Unlock()
|
c.trackedLocksMu.Unlock()
|
||||||
|
|
||||||
// If the verification state is enabled or undefined,
|
// If the verification state is enabled, this failed
|
||||||
// this failed locks verification means that the push
|
// locks verification means that the push should fail.
|
||||||
// should fail.
|
|
||||||
//
|
//
|
||||||
// If the state is disabled, the verification error is
|
// If the state is disabled, the verification error is
|
||||||
// silent and the user can upload.
|
// silent and the user can upload.
|
||||||
canUpload = c.lockVerifyState == verifyStateDisabled
|
//
|
||||||
|
// If the state is undefined, the verification error is
|
||||||
|
// sent as a warning and the user can upload.
|
||||||
|
canUpload = c.lockVerifyState != verifyStateEnabled
|
||||||
}
|
}
|
||||||
|
|
||||||
if lock, ok := c.ourLocks[p.Name]; ok {
|
if lock, ok := c.ourLocks[p.Name]; ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user