aboutsummaryrefslogtreecommitdiffstats
path: root/remote.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2015-10-31 00:40:50 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2015-10-31 00:40:50 +0100
commitfe1fc1aa7dca3e0f6e54ab17f0acfa45f269e58c (patch)
tree71af4726ece2d944eedd7b568ec1d7e68fbc5f25 /remote.go
parentfcbb68e3658a7929fe4f7e306fa8e9b602ff48f3 (diff)
downloadgo-git-fe1fc1aa7dca3e0f6e54ab17f0acfa45f269e58c.tar.gz
clients: Capabilities parsing improvement and GitUploadPackInfo encoding
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
}