diff options
author | Paulo Gomes <pjbgf@linux.com> | 2022-11-16 10:59:05 +0000 |
---|---|---|
committer | Paulo Gomes <pjbgf@linux.com> | 2022-11-16 10:59:05 +0000 |
commit | 9c7d2df0f3b85745bea4d764e51ab9e811bf644d (patch) | |
tree | ca3c69cd0b49501450e68dc196cd81403caeaf90 /plumbing/protocol/packp/uppackresp.go | |
parent | 452df976faca7193b275bd31a0d76027a2a9df5c (diff) | |
download | go-git-9c7d2df0f3b85745bea4d764e51ab9e811bf644d.tar.gz |
Allow unsupported multi_ack capability
Azure DevOps requires capabilities multi_ack / multi_ack_detailed,
which are not fully implemented and by default are included in
transport.UnsupportedCapabilities.
The initial clone operations require a full download of the repository,
and therefore those unsupported capabilities are not as crucial, so
by removing them from that list allows for the first clone to work
successfully.
Additional fetches will yield issues, therefore to support that
repository users have to work from a clean clone until those
capabilities are fully supported. Commits and pushes back into the
repository have also been tested and work fine.
This change adds an example for cloning Azure DevOps repositories.
Signed-off-by: Paulo Gomes <pjbgf@linux.com>
Diffstat (limited to 'plumbing/protocol/packp/uppackresp.go')
-rw-r--r-- | plumbing/protocol/packp/uppackresp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plumbing/protocol/packp/uppackresp.go b/plumbing/protocol/packp/uppackresp.go index 26ae61e..a485cb7 100644 --- a/plumbing/protocol/packp/uppackresp.go +++ b/plumbing/protocol/packp/uppackresp.go @@ -78,7 +78,7 @@ func (r *UploadPackResponse) Encode(w io.Writer) (err error) { } } - if err := r.ServerResponse.Encode(w); err != nil { + if err := r.ServerResponse.Encode(w, r.isMultiACK); err != nil { return err } |