Skip to content

Commit 818df5f

Browse files
committed
Fix nasty bug in output of "bashbrew children --uniq"
This was showing the repository of the repo-under-test with the tag of the child ("alpine:1.6.15-alpine" instead of "haproxy:1.6.15-alpine")
1 parent 0135673 commit 818df5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/bashbrew/cmd-deps.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package main
33
import (
44
"fmt"
55
"path"
6+
"strings"
67

78
"github.com/codegangsta/cli"
89
"pault.ag/go/topsort"
@@ -128,7 +129,7 @@ func cmdFamily(parents bool, c *cli.Context) error {
128129
for _, node := range depthNodes.nodes {
129130
seenKey := node.Name
130131
if uniq {
131-
seenKey = tagRepo + ":" + node.Value.(*manifest.Manifest2822Entry).Tags[0]
132+
seenKey = seenKey[:strings.Index(seenKey, ":")+1] + node.Value.(*manifest.Manifest2822Entry).Tags[0]
132133
}
133134
if seen[seenKey] {
134135
continue

0 commit comments

Comments
 (0)