mirror of
https://github.com/distribution/distribution.git
synced 2025-08-21 00:04:10 +00:00
Merge pull request #3 from digitalocean/awg/catalog-no-layers
catalog: List repositories with no unique layers
This commit is contained in:
commit
f8c65fc7c5
@ -143,8 +143,8 @@ func handleRepository(fileInfo driver.FileInfo, root, last string, fn func(repoP
|
||||
repo := filePath[len(root)+1:]
|
||||
|
||||
_, file := path.Split(repo)
|
||||
if file == "_layers" {
|
||||
repo = strings.TrimSuffix(repo, "/_layers")
|
||||
if file == "_manifests" {
|
||||
repo = strings.TrimSuffix(repo, "/_manifests")
|
||||
if lessPath(last, repo) {
|
||||
if err := fn(repo); err != nil {
|
||||
return err
|
||||
|
Loading…
Reference in New Issue
Block a user