aboutsummaryrefslogtreecommitdiffstats
path: root/common_test.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 /common_test.go
parentfcbb68e3658a7929fe4f7e306fa8e9b602ff48f3 (diff)
downloadgo-git-fe1fc1aa7dca3e0f6e54ab17f0acfa45f269e58c.tar.gz
clients: Capabilities parsing improvement and GitUploadPackInfo encoding
Diffstat (limited to 'common_test.go')
-rw-r--r--common_test.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/common_test.go b/common_test.go
index 446bc16..612afd1 100644
--- a/common_test.go
+++ b/common_test.go
@@ -28,9 +28,8 @@ func (s *MockGitUploadPackService) Info() (*common.GitUploadPackInfo, error) {
return &common.GitUploadPackInfo{
Capabilities: common.Capabilities(values),
- Refs: map[string]*common.RemoteHead{
- "refs/heads/master": &common.RemoteHead{Id: hash},
- },
+ Head: "refs/heads/master",
+ Refs: map[string]internal.Hash{"refs/heads/master": hash},
}, nil
}