From bcb49927a3897eadc29960032c70da29e26d6b58 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Mon, 15 Aug 2016 03:51:04 +0200 Subject: Repository.Clone and Remote.Fetch remote, local branches and client: correct header read --- common_test.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'common_test.go') diff --git a/common_test.go b/common_test.go index cd37e75..3c373ec 100644 --- a/common_test.go +++ b/common_test.go @@ -48,6 +48,7 @@ func (p *MockGitUploadPackService) Info() (*common.GitUploadPackInfo, error) { 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") + branch := core.ReferenceName("refs/heads/branch") tag := core.ReferenceName("refs/tags/v1.0.0") return &common.GitUploadPackInfo{ Capabilities: c, @@ -55,6 +56,7 @@ func (p *MockGitUploadPackService) Info() (*common.GitUploadPackInfo, error) { core.HEAD: core.NewSymbolicReference(core.HEAD, ref), ref: core.NewHashReference(ref, h), tag: core.NewHashReference(tag, h), + branch: core.NewHashReference(branch, core.NewHash("e8d3ffab552895c19b9fcf7aa264d277cde33881")), }, }, nil } -- cgit