diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-12 01:59:53 +0200 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2016-08-12 01:59:53 +0200 |
commit | 805cc777b083fee68a8834ebe1823d0b9dc6a00f (patch) | |
tree | e497602859f7e238072a31d20477db6a656f6482 /common_test.go | |
parent | 68307cee4259c6c4fded8124af7f993f0266a545 (diff) | |
download | go-git-805cc777b083fee68a8834ebe1823d0b9dc6a00f.tar.gz |
general: usage of the new Reference objects
Diffstat (limited to 'common_test.go')
-rw-r--r-- | common_test.go | 7 |
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 } |