diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2016-11-05 21:37:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-05 21:37:24 +0100 |
commit | 1da0de4423bcba9ff98c53f15cbf9cb8f11ebe27 (patch) | |
tree | 044014740860b2f820745589c2cd937285d8a821 /clients/common | |
parent | 743989abd8c1277dff78e56c2583a9f6dff796ff (diff) | |
download | go-git-1da0de4423bcba9ff98c53f15cbf9cb8f11ebe27.tar.gz |
clients: common, initialize Refs in GitUploadPackInfo
Diffstat (limited to 'clients/common')
-rw-r--r-- | clients/common/common.go | 5 |
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 { |