msvc: update Makefile to allow for spaces in the compiler path
[gitweb.git] / sub-process.c
index 6dde5062bef388fcdd3db10d9af19f8ffc7f7d6f..3f4af935557c5ee22b0b1b9b43d2778161210765 100644 (file)
@@ -77,18 +77,18 @@ 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;
        process->clean_on_exit = 1;
        process->clean_on_exit_handler = subprocess_exit_handler;
+       process->trace2_child_class = "subprocess";
 
        err = start_command(process);
        if (err) {