submodule: modernize ok_to_remove_submodule to use argv_array
commit5a1c824f70ec261f8f9e5e039555fc80301dee0b
authorStefan Beller <sbeller@google.com>
Tue, 20 Dec 2016 23:20:10 +0000 (20 15:20 -0800)
committerJunio C Hamano <gitster@pobox.com>
Tue, 27 Dec 2016 22:19:35 +0000 (27 14:19 -0800)
treeee2f538c633b4f709e887b7753f8b3400d6b0a7c
parentbd26756112c0b9394f0aea0a77e7f713ffb0cd00
submodule: modernize ok_to_remove_submodule to use argv_array

Instead of constructing the NULL terminated array ourselves, we
should make use of the argv_array infrastructure.

While at it, adapt the error messages to reflect the actual invocation.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule.c