]> git.ipfire.org Git - thirdparty/git.git/commit - fetch-pack.c
fetch-pack: use argv_array for index-pack / unpack-objects
authorJeff King <peff@peff.net>
Thu, 24 Sep 2015 21:07:54 +0000 (17:07 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 5 Oct 2015 18:08:05 +0000 (11:08 -0700)
commit984a43b902f005520e27268fecd10b9b517c0b17
treee0e89a8469ee55571f1cbb00e6b69cf94bda3fd8
parent43bb66ae0b2f1e379b73e3f0f697ca0d93e2a57b
fetch-pack: use argv_array for index-pack / unpack-objects

This cleans up a magic number that must be kept in sync with
the rest of the code (the number of argv slots). It also
lets us drop some fixed buffers and an sprintf (since we
can now use argv_array_pushf).

We do still have to keep one fixed buffer for calling
gethostname, but at least now the size computations for it
are much simpler.

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