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

`214330e`→[main](/content/gh/entireio/git-sync/commits/main/index.html)·Soph·2mo ago·18 files·+119 added/-163 removed

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

## Changes

18

- Mclient_test.go+2/-2

- cmd/git-sync

- Mmain_test.go+6/-6

- Mgo.mod+2/-2

- Mgo.sum+6/-6

- internal

- gitproto

- Mcapability.go+1/-1

- Mcapability_test.go+3/-4

- Mfetch.go+8/-16

- Mfetch_test.go+19/-20

- Mpush.go+7/-13

- Mpush_test.go+12/-17

- Mrefs.go+9/-23

- Mrefs_test.go+15/-21

- Msmarthttp.go+1/-1

- Mtarget_features.go+2/-2

- Mtarget_features_test.go+7/-8

- Mbootstrap.go+1/-1

- Mintegration_test.go+17/-19

- Mrepo.go+1/-1

`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"
```

```go
 "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"
```

```go
 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 {
```
 
- Mcmd/git-sync/main_test.go+6/-6

- Mgo.mod+2/-2

- Mgo.sum+6/-6

- Minternal/gitproto/capability.go+1/-1

- Minternal/gitproto/capability_test.go+3/-4

- Minternal/gitproto/fetch.go+8/-16

- Minternal/gitproto/push.go+7/-13

- Minternal/gitproto/refs.go+9/-23

- Minternal/gitproto/smarthttp.go+1/-1

- Minternal/gitproto/target_features.go+2/-2

- Minternal/strategy/bootstrap/bootstrap.go+1/-1
