aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2016-11-05 21:37:24 +0100
committerGitHub <noreply@github.com>2016-11-05 21:37:24 +0100
commit1da0de4423bcba9ff98c53f15cbf9cb8f11ebe27 (patch)
tree044014740860b2f820745589c2cd937285d8a821
parent743989abd8c1277dff78e56c2583a9f6dff796ff (diff)
downloadgo-git-1da0de4423bcba9ff98c53f15cbf9cb8f11ebe27.tar.gz
clients: common, initialize Refs in GitUploadPackInfo
-rw-r--r--clients/common/common.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/clients/common/common.go b/clients/common/common.go
index c723cdd..8e8b2e2 100644
--- a/clients/common/common.go
+++ b/clients/common/common.go
@@ -84,7 +84,10 @@ type GitUploadPackInfo struct {
}
func NewGitUploadPackInfo() *GitUploadPackInfo {
- return &GitUploadPackInfo{Capabilities: packp.NewCapabilities()}
+ return &GitUploadPackInfo{
+ Capabilities: packp.NewCapabilities(),
+ Refs: make(memory.ReferenceStorage, 0),
+ }
}
func (i *GitUploadPackInfo) Decode(r io.Reader) error {