aboutsummaryrefslogtreecommitdiffstats
path: root/common_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'common_test.go')
-rw-r--r--common_test.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/common_test.go b/common_test.go
index 0f2bcdf..4a8384f 100644
--- a/common_test.go
+++ b/common_test.go
@@ -36,10 +36,13 @@ func (s *MockGitUploadPackService) Info() (*common.GitUploadPackInfo, error) {
c := common.NewCapabilities()
c.Decode("6ecf0ef2c2dffb796033e5a02219af86ec6584e5 HEADmulti_ack thin-pack side-band side-band-64k ofs-delta shallow no-progress include-tag multi_ack_detailed no-done symref=HEAD:refs/heads/master agent=git/2:2.4.8~dbussink-fix-enterprise-tokens-compilation-1167-gc7006cf")
+ ref := core.ReferenceName("refs/heads/master")
return &common.GitUploadPackInfo{
Capabilities: c,
- Head: h,
- Refs: map[string]core.Hash{"refs/heads/master": h},
+ Refs: map[core.ReferenceName]*core.Reference{
+ core.HEAD: core.NewSymbolicReference(core.HEAD, ref),
+ ref: core.NewHashReference(ref, h),
+ },
}, nil
}