Unverified Commit d3f554fd by Edward Thomson Committed by GitHub

Merge pull request #6435 from russell/capabilities-typo

transport: fix capabilities calculation
parents 1845eac6 be7356d0
...@@ -207,13 +207,13 @@ int git_smart__detect_caps(git_pkt_ref *pkt, transport_smart_caps *caps, git_vec ...@@ -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)) { if (!git__prefixcmp(ptr, GIT_CAP_WANT_TIP_SHA1)) {
caps->common = caps->want_tip_sha1 = 1; caps->common = caps->want_tip_sha1 = 1;
ptr += strlen(GIT_CAP_DELETE_REFS); ptr += strlen(GIT_CAP_WANT_TIP_SHA1);
continue; continue;
} }
if (!git__prefixcmp(ptr, GIT_CAP_WANT_REACHABLE_SHA1)) { if (!git__prefixcmp(ptr, GIT_CAP_WANT_REACHABLE_SHA1)) {
caps->common = caps->want_reachable_sha1 = 1; caps->common = caps->want_reachable_sha1 = 1;
ptr += strlen(GIT_CAP_DELETE_REFS); ptr += strlen(GIT_CAP_WANT_REACHABLE_SHA1);
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment