git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
5fa0f52
)
run-command: use prepare_git_cmd() in prepare_cmd()
author
René Scharfe
<redacted>
Tue, 26 Nov 2019 09:06:36 +0000
(10:06 +0100)
committer
Junio C Hamano
<redacted>
Wed, 27 Nov 2019 02:22:35 +0000
(11:22 +0900)
Call prepare_git_cmd() instead of open-coding it.
Signed-off-by: René Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
run-command.c
patch
|
blob
|
history
diff --git
a/run-command.c
b/run-command.c
index 3449db319b95d17133abcdb39048730a4c922515..9942f120a9b928831008a561ce6f09b60fa5b0e0 100644
(file)
--- a/
run-command.c
+++ b/
run-command.c
@@
-412,8
+412,7
@@
static int prepare_cmd(struct argv_array *out, const struct child_process *cmd)
argv_array_push(out, SHELL_PATH);
if (cmd->git_cmd) {
- argv_array_push(out, "git");
- argv_array_pushv(out, cmd->argv);
+ prepare_git_cmd(out, cmd->argv);
} else if (cmd->use_shell) {
prepare_shell_cmd(out, cmd->argv);
} else {
git clone https://git.99rst.org/PROJECT