summaryrefslogtreecommitdiff
path: root/src/protocol.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-09-15 08:07:24 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-09-30 11:56:38 +0200
commit24f2f94e7defd20ab302c30d0d394248a6e43814 (patch)
treeef3bfbac718823254d407021d1240da840200865 /src/protocol.c
parentc128149315c67d52c4503e294bfbd2653e0a8307 (diff)
downloadlibgit2-24f2f94e7defd20ab302c30d0d394248a6e43814.tar.gz
fetch: use the include-tag capability
This tells the remote to send us any tags that point to objects that we are downloading.
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/protocol.c b/src/protocol.c
index 4526c857d..8f673cda7 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -80,6 +80,12 @@ int git_protocol_detect_caps(git_pkt_ref *pkt, git_transport_caps *caps)
continue;
}
+ if(!git__prefixcmp(ptr, GIT_CAP_INCLUDE_TAG)) {
+ caps->common = caps->include_tag = 1;
+ ptr += strlen(GIT_CAP_INCLUDE_TAG);
+ continue;
+ }
+
/* Keep side-band check after side-band-64k */
if(!git__prefixcmp(ptr, GIT_CAP_SIDE_BAND_64K)) {
caps->common = caps->side_band_64k = 1;