]> git.ipfire.org Git - thirdparty/git.git/blobdiff - credential.c
Merge branch 'es/worktree-repair'
[thirdparty/git.git] / credential.c
index d8d226b97e34805735cc14bdc3e549d012b33f8d..efc29dc5e1d28e0b2f6f92051de291dfb13e57ae 100644 (file)
@@ -274,11 +274,9 @@ static int run_credential_helper(struct credential *c,
                                 int want_output)
 {
        struct child_process helper = CHILD_PROCESS_INIT;
-       const char *argv[] = { NULL, NULL };
        FILE *fp;
 
-       argv[0] = cmd;
-       helper.argv = argv;
+       strvec_push(&helper.args, cmd);
        helper.use_shell = 1;
        helper.in = -1;
        if (want_output)