diff --git a/components/engine/graph/tags.go b/components/engine/graph/tags.go index b212fd93ba..ad38db8a07 100644 --- a/components/engine/graph/tags.go +++ b/components/engine/graph/tags.go @@ -253,8 +253,6 @@ func (store *TagStore) Delete(repoName, ref string) (bool, error) { return false, err } - repoName = registry.NormalizeLocalName(repoName) - if ref == "" { // Delete the whole repository. delete(store.Repositories, repoName) @@ -262,6 +260,7 @@ func (store *TagStore) Delete(repoName, ref string) (bool, error) { } repoRefs, exists := store.Repositories[repoName] + if !exists { return false, fmt.Errorf("No such repository: %s", repoName) }