mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-08 15:47:40 +00:00
update go git from v4.10.0 to v4.11.0 (#7096)
This commit is contained in:
parent
fb4438a815
commit
8a343dda39
15 changed files with 93 additions and 40 deletions
9
vendor/gopkg.in/src-d/go-git.v4/remote.go
generated
vendored
9
vendor/gopkg.in/src-d/go-git.v4/remote.go
generated
vendored
|
@ -1020,7 +1020,12 @@ func pushHashes(
|
|||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
done := make(chan error)
|
||||
|
||||
// Set buffer size to 1 so the error message can be written when
|
||||
// ReceivePack fails. Otherwise the goroutine will be blocked writing
|
||||
// to the channel.
|
||||
done := make(chan error, 1)
|
||||
|
||||
go func() {
|
||||
e := packfile.NewEncoder(wr, s, useRefDeltas)
|
||||
if _, err := e.Encode(hs, config.Pack.Window); err != nil {
|
||||
|
@ -1033,6 +1038,8 @@ func pushHashes(
|
|||
|
||||
rs, err := sess.ReceivePack(ctx, req)
|
||||
if err != nil {
|
||||
// close the pipe to unlock encode write
|
||||
_ = rd.Close()
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue