aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-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 {