Skip to content

Commit

Permalink
git_connect: use use_shell instead of explicit "sh", "-c"
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Sixt authored and Junio C Hamano committed Jan 25, 2010
1 parent b2c2e4c commit 4cfb2a4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cfb2a4

Please sign in to comment.