http-push: use an argv_array for setup_revisions
authorJeff King <peff@peff.net>
Thu, 24 Sep 2015 21:07:56 +0000 (17:07 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Oct 2015 18:08:05 +0000 (11:08 -0700)
commita0355f6bcde6fb62d9629927b2e241353b38aeef
tree833c0a675a4661d7c7516f2d0b0254f4183fc628
parent984a43b902f005520e27268fecd10b9b517c0b17
http-push: use an argv_array for setup_revisions

This drops the magic number for the fixed-size argv arrays,
so we do not have to wonder if we are overflowing it. We can
also drop some confusing sha1_to_hex memory allocation
(which seems to predate the ring of buffers allowing
multiple calls), and get rid of an unchecked sprintf call.

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