credential: ignore SIGPIPE when writing to credential helpers
[gitweb.git] / sub-process.c
index 6dde5062bef388fcdd3db10d9af19f8ffc7f7d6f..8d2a1707cfe1a7d0fb6b589f0857a6389a8a3d70 100644 (file)
@@ -77,13 +77,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;