From 5913aee5004ff5b32c7926dda3af1f946d203f33 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Thu, 22 Sep 2016 23:41:48 +0200 Subject: test coverage improved, Remote.Refs and Repository.Refs returns error, TreeWalker -> TreeIter --- examples/remotes/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/remotes') diff --git a/examples/remotes/main.go b/examples/remotes/main.go index 88662cd..552d6a5 100644 --- a/examples/remotes/main.go +++ b/examples/remotes/main.go @@ -45,7 +45,8 @@ func main() { // > git show-ref color.Blue("git show-ref") - r.Refs().ForEach(func(ref *core.Reference) error { + refs, _ := r.Refs() + refs.ForEach(func(ref *core.Reference) error { // The HEAD is ommitted in a `git show-ref` so we ignore the symbolic // references, the HEAD if ref.Type() == core.SymbolicReference { -- cgit