aboutsummaryrefslogtreecommitdiffstats
path: root/commands/ls.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-17 01:52:56 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-17 01:52:56 +0200
commit0180b68cb0bb3aecf9b4a6186094a084762b4a25 (patch)
tree95597554cfdda76b9f6cc5aab7c3fd5b24a3db75 /commands/ls.go
parent1d678dfdfa026968dbb19795c9bed16385603b21 (diff)
downloadgit-bug-0180b68cb0bb3aecf9b4a6186094a084762b4a25.tar.gz
implement pull/merge
Diffstat (limited to 'commands/ls.go')
-rw-r--r--commands/ls.go6
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