summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-01-20 22:30:57 +0000
committerGitHub <noreply@github.com>2023-01-20 22:30:57 +0000
commitd3f554fd67d0b2028705ecc41c79110c12b86776 (patch)
treecdbd3fc0e2f4bb51f762cb2b6893c004f74c25a8
parent1845eac67c7876736335f78d830dc6b702701afa (diff)
parentbe7356d0c6dca4154ae7b7f57c556d7b58b0d5f5 (diff)
downloadlibgit2-d3f554fd67d0b2028705ecc41c79110c12b86776.tar.gz
Merge pull request #6435 from russell/capabilities-typo
transport: fix capabilities calculation
-rw-r--r--src/libgit2/transports/smart_protocol.c4
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;
}