remote-curl: make refs_url a strbuf
commitc65d5692cd3434133c2e8f1a20074a261e0267f0
authorJeff King <peff@peff.net>
Sat, 28 Sep 2013 08:35:10 +0000 (28 04:35 -0400)
committerJonathan Nieder <jrnieder@gmail.com>
Mon, 14 Oct 2013 23:57:04 +0000 (14 16:57 -0700)
tree27456795da2f1a648e4268d70687310bb7964b9f
parentc93c92f30977adb2eb385a851f9f5e9975da7d5e
remote-curl: make refs_url a strbuf

In the discover_refs function, we use a strbuf named
"buffer" for multiple purposes. First we build the info/refs
URL in it, and then detach that to a bare pointer. Then, we
use the same strbuf to store the result of fetching the
refs.

Let's instead keep a separate refs_url strbuf. This is less
confusing, as the "buffer" strbuf is now used for only one
thing.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
remote-curl.c