summaryrefslogtreecommitdiff
path: root/src/pkt.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/pkt.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/pkt.c')
-rw-r--r--src/pkt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkt.c b/src/pkt.c
index ad0149d33..91f9b65c2 100644
--- a/src/pkt.c
+++ b/src/pkt.c
@@ -354,6 +354,9 @@ static int buffer_want_with_caps(git_remote_head *head, git_transport_caps *caps
if (caps->multi_ack)
git_buf_puts(&str, GIT_CAP_MULTI_ACK " ");
+ if (caps->include_tag)
+ git_buf_puts(&str, GIT_CAP_INCLUDE_TAG " ");
+
if (git_buf_oom(&str))
return -1;