summaryrefslogtreecommitdiff
path: root/src/pkt.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-08-07 14:02:04 +0200
committerVicent Marti <tanoku@gmail.com>2011-08-18 02:34:09 +0200
commit1564db11fe291eb21b5f57a063deb482cedf323d (patch)
tree2b8657e5a92f8ece775f46753fdf2da3f6e998a2 /src/pkt.c
parentade3c9bb88b0afb4b025cf92c74e17704c9bc4f4 (diff)
downloadlibgit2-1564db11fe291eb21b5f57a063deb482cedf323d.tar.gz
Remove enum git_whn
Instead, use flags inside the git_remote_head structure. Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
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);