aboutsummaryrefslogtreecommitdiffstats
path: root/examples/remotes
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-09-22 23:41:48 +0200
committerMáximo Cuadros <mcuadros@gmail.com>2016-09-22 23:41:48 +0200
commit5913aee5004ff5b32c7926dda3af1f946d203f33 (patch)
treec9b3ce9e4439faf0313749690a3a0e496e32447d /examples/remotes
parent001bb130fe6186421f3ddcc556854410edd8d95e (diff)
downloadgo-git-5913aee5004ff5b32c7926dda3af1f946d203f33.tar.gz
test coverage improved, Remote.Refs and Repository.Refs returns error, TreeWalker -> TreeIter
Diffstat (limited to 'examples/remotes')
-rw-r--r--examples/remotes/main.go3
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 {