credential-cache: use child_process.args
commitc0e190c168becfd7d6c27cd868542295bd474742
authorJunio C Hamano <gitster@pobox.com>
Wed, 26 Aug 2020 21:37:39 +0000 (26 14:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Aug 2020 15:32:16 +0000 (27 08:32 -0700)
tree729a0334efd3b0ff76e2883606ffead7fc39b09a
parent7cff3b67aca11f757fb36ac58a89ae54bcb5b19e
credential-cache: use child_process.args

As child_process structure has an embedded strvec args for
formulating the command line, let's use it instead of using
an out-of-line argv[] whose length needs to be maintained
correctly.

Also, when spawning a git subcommand, omit it from the command list
and instead use the .git_cmd bit in the child_process structure.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
credential-cache.c