From b57ca64275a7c75fdbee8dc9e4b35529c7a166d7 Mon Sep 17 00:00:00 2001 From: Tobias Klein Date: Mon, 16 Oct 2017 16:22:08 +0200 Subject: [PATCH] fuse: bugfix: ignore empty tags --- internal/fuse/snapshots_dir.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/fuse/snapshots_dir.go b/internal/fuse/snapshots_dir.go index eb48b85d1..47c691fea 100644 --- a/internal/fuse/snapshots_dir.go +++ b/internal/fuse/snapshots_dir.go @@ -78,7 +78,9 @@ func updateTagNames(d *TagsDir) { d.tags = make(map[string]bool, len(d.root.snapshots)) for _, snapshot := range d.root.snapshots { for _, tag := range snapshot.Tags { - d.tags[tag] = true + if tag != "" { + d.tags[tag] = true + } } } }