Unverified Commit 92fa01d6 authored by Wang Yan's avatar Wang Yan Committed by GitHub
Browse files

Merge pull request #8733 from ywk253100/190819_label

Fix bug of listing tags filtered by label
parents 29ab93ad a5d292c9
Showing with 6 additions and 1 deletion
+6 -1
......@@ -584,7 +584,12 @@ func (ra *RepositoryAPI) GetTags() {
}
labeledTags := map[string]struct{}{}
for _, rl := range rls {
labeledTags[strings.Split(rl.ResourceName, ":")[1]] = struct{}{}
strs := strings.SplitN(rl.ResourceName, ":", 2)
// the "rls" may contain images which don't belong to the repository
if strs[0] != repoName {
continue
}
labeledTags[strs[1]] = struct{}{}
}
ts := []string{}
for _, tag := range tags {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment