get_exporter: use argv_array
commit2aeae40a754ed8296df95df263e694ad4eab3a49
authorJeff King <peff@peff.net>
Thu, 15 May 2014 08:34:44 +0000 (15 04:34 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 May 2014 16:49:11 +0000 (15 09:49 -0700)
tree70b62cacad19968cf201b7804a37553274767ef8
parente0ab2ac6c553cbba5d0275cfd35beb3351cae034
get_exporter: use argv_array

This simplifies the code and avoids a fixed array size that
we might accidentally overflow. It also prevents a leak
after finish_command is run, by using the argv_array that
run-command manages for us.

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