Signed-off-by: Jon Johnson <jonjohnson@google.com>
| ... | ... |
@@ -283,8 +283,8 @@ func (pd *v2PushDescriptor) Upload(ctx context.Context, progressOutput progress. |
| 283 | 283 |
// Do we have any metadata associated with this layer's DiffID? |
| 284 | 284 |
v2Metadata, err := pd.v2MetadataService.GetMetadata(diffID) |
| 285 | 285 |
if err == nil {
|
| 286 |
- // check for blob existence in the target repository if we have a mapping with it |
|
| 287 |
- descriptor, exists, err := pd.layerAlreadyExists(ctx, progressOutput, diffID, false, 1, v2Metadata) |
|
| 286 |
+ // check for blob existence in the target repository |
|
| 287 |
+ descriptor, exists, err := pd.layerAlreadyExists(ctx, progressOutput, diffID, true, 1, v2Metadata) |
|
| 288 | 288 |
if exists || err != nil {
|
| 289 | 289 |
return descriptor, err |
| 290 | 290 |
} |