Merge pull request #55 from entireio/soph/go-git-alpha3 · Entire

Merge pull request #55 from entireio/soph/go-git-alpha3

214330e→main·Soph·2mo ago·18 files·+119 added/-163 removed

update to go-git v6.0.0-alpha.3

Changes

18

226 unmodified lines


```go
if !bytes.Contains(body, []byte("PACK")) {
 req := packp.NewUpdateRequests()
 req := &packp.UpdateRequests{}
 if err := req.Decode(bytes.NewReader(body)); err != nil {
 http.Error(w, err.Error(), http.StatusBadRequest)
 return
 }
 
 report := packp.NewReportStatus()
 report := &packp.ReportStatus{}
 report.UnpackStatus = "ok"
 for _, cmd := range req.Commands {
 status := "ok"
 "github.com/go-git/go-git/v6/plumbing"
 "github.com/go-git/go-git/v6/plumbing/format/pktline"
 "github.com/go-git/go-git/v6/plumbing/object"
 "github.com/go-git/go-git/v6/plumbing/protocol/capability"
 "github.com/go-git/go-git/v6/plumbing/protocol/packp"
 "github.com/go-git/go-git/v6/plumbing/protocol/packp/capability"
 "github.com/go-git/go-git/v6/plumbing/protocol/packp/sideband"
 "github.com/go-git/go-git/v6/plumbing/transport"
 "github.com/go-git/go-git/v6/storage/memory"
 for _, tt := range tests {
 t.Run(tt.name, func(t *testing.T) {
 list := capability.NewList()
 list := &capability.List{}
 for _, c := range tt.caps {
 require.NoError(t, list.Set(c))
 list.Set(c)
 }
 got := PreferredSideband(list)
 if got != tt.want {