remote-curl: pass buffer straight to get_remote_heads
authorJeff King <peff@peff.net>
Wed, 20 Feb 2013 20:07:02 +0000 (15:07 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Feb 2013 08:17:38 +0000 (00:17 -0800)
commit5dbf43602de31cac518607b4d9a04a40d7b154c8
tree3906d79d888fb6938037d2cccc6d8d2399b66702
parent85edf4f58b5368e2f2acc4bce0d10e1ca9d6c879
remote-curl: pass buffer straight to get_remote_heads

Until recently, get_remote_heads only knew how to read refs
from a file descriptor. To hack around this, we spawned a
thread (or forked a process) to write the buffer back to us.

Now that we can just pass it our buffer directly, we don't
have to use this hack anymore.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
remote-curl.c