Skip to content

Commit

Permalink
Use /. as the directory root to copy from.
Browse files Browse the repository at this point in the history
Workaround for containers/podman#6596

Upstream-repository: operator-registry
Upstream-commit: 44860f7215f300480caf8d65fd4c1b72eb973159
  • Loading branch information
Jamstah authored and timflannagan committed Jul 13, 2021
1 parent e059c51 commit b941ade
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func (r *Registry) Pull(ctx context.Context, ref image.Reference) error {
// Unpack writes the unpackaged content of an image to a directory.
// If the referenced image does not exist in the registry, an error is returned.
func (r *Registry) Unpack(ctx context.Context, ref image.Reference, dir string) error {
return r.cmd.Unpack(ref.String(), "/", dir)
return r.cmd.Unpack(ref.String(), "/.", dir)
}

// Labels gets the labels for an image reference.
Expand Down

0 comments on commit b941ade

Please sign in to comment.