aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
Diffstat (limited to 'remote.go')
-rw-r--r--remote.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/remote.go b/remote.go
index 7d21710..1c74ce0 100644
--- a/remote.go
+++ b/remote.go
@@ -77,5 +77,10 @@ func (r *Remote) Ref(refName string) (internal.Hash, error) {
return internal.NewHash(""), fmt.Errorf("unable to find ref %q", refName)
}
- return ref.Id, nil
+ return ref, nil
+}
+
+// Refs returns the Hash pointing the given refName
+func (r *Remote) Refs() map[string]internal.Hash {
+ return r.upInfo.Refs
}