Skip to content

Commit

Permalink
Merge branch 'main' into experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
TerryHowe authored Jan 21, 2025
2 parents 45a5764 + 26430ec commit 3420f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/oras/root/push.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func runPush(cmd *cobra.Command, opts *pushOptions) error {
copyWithScopeHint := func(root ocispec.Descriptor) error {
// add both pull and push scope hints for dst repository
// to save potential push-scope token requests during copy
ctx = registryutil.WithScopeHint(ctx, dst, auth.ActionPull, auth.ActionPush)
ctx = registryutil.WithScopeHint(ctx, originalDst, auth.ActionPull, auth.ActionPush)

if tag := opts.Reference; tag == "" {
err = oras.CopyGraph(ctx, union, dst, root, copyOptions.CopyGraphOptions)
Expand Down

0 comments on commit 3420f06

Please sign in to comment.