Merge pull request #28085 from aaronlehmann/remove-comment

distribution: Remove misleading comment
Upstream-commit: c5ceb0f945d390500a0045b14ffe4dcecfe46a85
Component: engine
This commit is contained in:
Sebastiaan van Stijn
2016-11-04 19:57:57 -07:00
committed by GitHub

View File

@ -338,9 +338,6 @@ func (p *v2Puller) pullV2Tag(ctx context.Context, ref reference.Named) (tagUpdat
tagOrDigest string // Used for logging/progress only
)
if tagged, isTagged := ref.(reference.NamedTagged); isTagged {
// NOTE: not using TagService.Get, since it uses HEAD requests
// against the manifests endpoint, which are not supported by
// all registry versions.
manifest, err = manSvc.Get(ctx, "", distribution.WithTag(tagged.Tag()))
if err != nil {
return false, allowV1Fallback(err)