Skip to content

Commit 4b1a972

Browse files
authored
Merge pull request #234 from miminar/1.13.1-always-head-on-push
[1.13.1] Always HEAD blobs at least once during pushes
2 parents cd4c02a + 69ede8b commit 4b1a972

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

distribution/push_v2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,8 +313,8 @@ func (pd *v2PushDescriptor) Upload(ctx context.Context, progressOutput progress.
313313
// Do we have any metadata associated with this layer's DiffID?
314314
v2Metadata, err := pd.v2MetadataService.GetMetadata(diffID)
315315
if err == nil {
316-
// check for blob existence in the target repository if we have a mapping with it
317-
descriptor, exists, err := pd.layerAlreadyExists(ctx, progressOutput, diffID, false, 1, v2Metadata)
316+
// check for blob existence in the target repository
317+
descriptor, exists, err := pd.layerAlreadyExists(ctx, progressOutput, diffID, true, 1, v2Metadata)
318318
if exists || err != nil {
319319
return descriptor, err
320320
}

0 commit comments

Comments
 (0)