From e4fa65b4f0e71e9357584cc469830ed32afdb657 Mon Sep 17 00:00:00 2001 From: Taylor Blau Date: Thu, 27 Apr 2017 11:10:22 -0600 Subject: [PATCH] commands/uploader: allow object upload for undefined verification state --- commands/uploader.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/commands/uploader.go b/commands/uploader.go index b917ba8f..a7399d3f 100644 --- a/commands/uploader.go +++ b/commands/uploader.go @@ -227,13 +227,15 @@ func (c *uploadContext) prepareUpload(unfiltered ...*lfs.WrappedPointer) (*tq.Tr c.unownedLocks = append(c.unownedLocks, lock) c.trackedLocksMu.Unlock() - // If the verification state is enabled or undefined, - // this failed locks verification means that the push - // should fail. + // If the verification state is enabled, this failed + // locks verification means that the push should fail. // // If the state is disabled, the verification error is // 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 {