From cdc46abde53a8728affff2b39255dce6410fb6b8 Mon Sep 17 00:00:00 2001 From: Jon Johnson Date: Tue, 7 Mar 2017 21:56:46 -0800 Subject: [PATCH] Always HEAD blobs at least once during pushes Signed-off-by: Jon Johnson --- distribution/push_v2.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/push_v2.go b/distribution/push_v2.go index bf69ea5fc3..d89416d2d4 100644 --- a/distribution/push_v2.go +++ b/distribution/push_v2.go @@ -283,8 +283,8 @@ func (pd *v2PushDescriptor) Upload(ctx context.Context, progressOutput progress. // Do we have any metadata associated with this layer's DiffID? v2Metadata, err := pd.v2MetadataService.GetMetadata(diffID) if err == nil { - // check for blob existence in the target repository if we have a mapping with it - descriptor, exists, err := pd.layerAlreadyExists(ctx, progressOutput, diffID, false, 1, v2Metadata) + // check for blob existence in the target repository + descriptor, exists, err := pd.layerAlreadyExists(ctx, progressOutput, diffID, true, 1, v2Metadata) if exists || err != nil { return descriptor, err }