diff options
| author | Jiang Xin <zhiyou.jx@alibaba-inc.com> | 2024-01-21 21:15:34 +0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-01-22 07:54:37 -0800 |
| commit | 23b7d59a82ce39c0e08a4052de3be9ffbccd99b9 (patch) | |
| tree | 3d6b305e3c290a9194e63e4beacb1bad26365022 /http-backend.c | |
| parent | transport-helper: no connection restriction in connect_helper (diff) | |
| download | git-23b7d59a82ce39c0e08a4052de3be9ffbccd99b9.tar.gz git-23b7d59a82ce39c0e08a4052de3be9ffbccd99b9.zip | |
remote-curl: supports git-upload-archive service
Add new service (git-upload-archive) support in remote-curl, so we can
support remote archive over HTTP/HTTPS protocols. Differences between
git-upload-archive and other services:
1. The git-archive program does not expect to see protocol version and
capabilities when connecting to remote-helper, so do not send them
in remote-curl for the git-upload-archive service.
2. We need to detect protocol version by calling discover_refs().
Fallback to use the git-upload-pack service (which, like
git-upload-archive, is a read-only operation) to discover protocol
version.
Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'http-backend.c')
0 files changed, 0 insertions, 0 deletions
