diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-17 01:52:56 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-17 01:52:56 +0200 |
commit | 0180b68cb0bb3aecf9b4a6186094a084762b4a25 (patch) | |
tree | 95597554cfdda76b9f6cc5aab7c3fd5b24a3db75 /commands/ls.go | |
parent | 1d678dfdfa026968dbb19795c9bed16385603b21 (diff) | |
download | git-bug-0180b68cb0bb3aecf9b4a6186094a084762b4a25.tar.gz |
implement pull/merge
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 |