mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
0928f3f2e3
to avoid unnecessary blob re-uploads. Cross repository mount from particular repo will most probably fail if the user pushing to the registry is not the same as the one who pulled or pushed to the source repo. This PR attempts first to cross-repo mount from the source repositories associated with the pusher's auth config. Then it falls back to other repositories sorted from the most similar to the target repo to the least. It also prevents metadata deletion in cases where cross-repo mount fails and the auth config hashes differ. Signed-off-by: Michal Minář <miminar@redhat.com> |
||
---|---|---|
.. | ||
metadata.go | ||
v1_id_service.go | ||
v1_id_service_test.go | ||
v2_metadata_service.go | ||
v2_metadata_service_test.go |