1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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") return errors.New("cannot push a digest reference")
} }
// Pull all tags // Push all tags
pushed := 0 pushed := 0
for _, association := range p.config.ReferenceStore.ReferencesByName(p.ref) { for _, association := range p.config.ReferenceStore.ReferencesByName(p.ref) {
if namedTagged, isNamedTagged := association.Ref.(reference.NamedTagged); isNamedTagged { if namedTagged, isNamedTagged := association.Ref.(reference.NamedTagged); isNamedTagged {