diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-22 23:41:48 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-09-22 23:41:48 +0200 |
commit | 5913aee5004ff5b32c7926dda3af1f946d203f33 (patch) | |
tree | c9b3ce9e4439faf0313749690a3a0e496e32447d /examples/remotes/main.go | |
parent | 001bb130fe6186421f3ddcc556854410edd8d95e (diff) | |
download | go-git-5913aee5004ff5b32c7926dda3af1f946d203f33.tar.gz |
test coverage improved, Remote.Refs and Repository.Refs returns error, TreeWalker -> TreeIter
Diffstat (limited to 'examples/remotes/main.go')
-rw-r--r-- | examples/remotes/main.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |