Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 1da0de4

Browse files
authored
clients: common, initialize Refs in GitUploadPackInfo
1 parent 743989a commit 1da0de4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

clients/common/common.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ type GitUploadPackInfo struct {
8484
}
8585

8686
func NewGitUploadPackInfo() *GitUploadPackInfo {
87-
return &GitUploadPackInfo{Capabilities: packp.NewCapabilities()}
87+
return &GitUploadPackInfo{
88+
Capabilities: packp.NewCapabilities(),
89+
Refs: make(memory.ReferenceStorage, 0),
90+
}
8891
}
8992

9093
func (i *GitUploadPackInfo) Decode(r io.Reader) error {

0 commit comments

Comments
 (0)