Merge branch 'ad/doc-markup-fix' into maint
[gitweb.git] / sub-process.c
index ec9a51b7b1c41824fdc38a21ae09f32c41d89b01..80571567f2a64be451fe2ac92c230f66fa04c844 100644 (file)
@@ -74,13 +74,12 @@ int subprocess_start(struct hashmap *hashmap, struct subprocess_entry *entry, co
 {
        int err;
        struct child_process *process;
-       const char *argv[] = { cmd, NULL };
 
        entry->cmd = cmd;
        process = &entry->process;
 
        child_process_init(process);
-       process->argv = argv;
+       argv_array_push(&process->args, cmd);
        process->use_shell = 1;
        process->in = -1;
        process->out = -1;