diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-01-20 22:30:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 22:30:57 +0000 |
commit | d3f554fd67d0b2028705ecc41c79110c12b86776 (patch) | |
tree | cdbd3fc0e2f4bb51f762cb2b6893c004f74c25a8 | |
parent | 1845eac67c7876736335f78d830dc6b702701afa (diff) | |
parent | be7356d0c6dca4154ae7b7f57c556d7b58b0d5f5 (diff) | |
download | libgit2-d3f554fd67d0b2028705ecc41c79110c12b86776.tar.gz |
Merge pull request #6435 from russell/capabilities-typo
transport: fix capabilities calculation
-rw-r--r-- | src/libgit2/transports/smart_protocol.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libgit2/transports/smart_protocol.c b/src/libgit2/transports/smart_protocol.c index 09778b335..88c208fb5 100644 --- a/src/libgit2/transports/smart_protocol.c +++ b/src/libgit2/transports/smart_protocol.c @@ -207,13 +207,13 @@ int git_smart__detect_caps(git_pkt_ref *pkt, transport_smart_caps *caps, git_vec if (!git__prefixcmp(ptr, GIT_CAP_WANT_TIP_SHA1)) { caps->common = caps->want_tip_sha1 = 1; - ptr += strlen(GIT_CAP_DELETE_REFS); + ptr += strlen(GIT_CAP_WANT_TIP_SHA1); continue; } if (!git__prefixcmp(ptr, GIT_CAP_WANT_REACHABLE_SHA1)) { caps->common = caps->want_reachable_sha1 = 1; - ptr += strlen(GIT_CAP_DELETE_REFS); + ptr += strlen(GIT_CAP_WANT_REACHABLE_SHA1); continue; } |