diff options
Diffstat (limited to 'commands/ls.go')
-rw-r--r-- | commands/ls.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/commands/ls.go b/commands/ls.go index dea2bba2..94755b2d 100644 --- a/commands/ls.go +++ b/commands/ls.go @@ -7,14 +7,14 @@ import ( ) func runLsBug(repo repository.Repo, args []string) error { - refs, err := repo.ListRefs(b.BugsRefPattern) + ids, err := repo.ListRefs(b.BugsRefPattern) if err != nil { return err } - for _, ref := range refs { - bug, err := b.ReadBug(repo, ref) + for _, ref := range ids { + bug, err := b.ReadBug(repo, b.BugsRefPattern+ref) if err != nil { return err |