git_connect: use use_shell instead of explicit "sh", "-c"

This is a followup to ac0ba18 (run-command: convert simple callsites to
use_shell, 2009-12-30), for consistency.

Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Johannes Sixt 2010-01-25 13:32:44 +01:00 committed by Junio C Hamano
parent b2c2e4c22c
commit 4cfb2a44bb

View File

@ -613,8 +613,7 @@ struct child_process *git_connect(int fd[2], const char *url_orig,
NULL
};
conn->env = env;
*arg++ = "sh";
*arg++ = "-c";
conn->use_shell = 1;
}
*arg++ = cmd.buf;
*arg = NULL;