mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Always HEAD blobs at least once during pushes
Signed-off-by: Jon Johnson <jonjohnson@google.com>
This commit is contained in:
parent
3fe2730ab3
commit
cdc46abde5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue