fix code note when push all tags

Signed-off-by: zhipengzuo <zuozhipeng@baidu.com>
This commit is contained in:
zhipengzuo 2020-06-16 21:05:10 +08:00
parent 88241b9989
commit e07a88c95f

View file

@ -94,7 +94,7 @@ func (p *v2Pusher) pushV2Repository(ctx context.Context) (err error) {
return errors.New("cannot push a digest reference")
}
// Pull all tags
// Push all tags
pushed := 0
for _, association := range p.config.ReferenceStore.ReferencesByName(p.ref) {
if namedTagged, isNamedTagged := association.Ref.(reference.NamedTagged); isNamedTagged {