summaryrefslogtreecommitdiff
path: root/src/pkt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkt.c')
-rw-r--r--src/pkt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkt.c b/src/pkt.c
index 12f1478b8..419fb9cf0 100644
--- a/src/pkt.c
+++ b/src/pkt.c
@@ -318,8 +318,8 @@ int git_pkt_send_wants(git_headarray *refs, git_transport_caps *caps, int fd)
for (; i < refs->len; ++i) {
head = refs->heads[i];
- if (head->type != GIT_WHN_WANT)
- continue; /* FIXME: return? refs shouldn't have any other type */
+ if (head->local)
+ continue;
git_oid_fmt(buf + STRLEN(WANT_PREFIX), &head->oid);
gitno_send(fd, buf, STRLEN(buf), 0);