Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
run-command: call run_command_v_opt_cd_env() instead of duplicating it
author
René Scharfe
<l.s.r@web.de>
Tue, 19 Aug 2014 19:11:00 +0000
(21:11 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 20 Aug 2014 16:55:41 +0000
(09:55 -0700)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
run-command.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
483bbd4
)
diff --git
a/run-command.c
b/run-command.c
index 47ab21bcc3811b23d1b1e5e59941b17aa2757558..9196ee0fe32abeb4210d695868240cee3035be3b 100644
(file)
--- a/
run-command.c
+++ b/
run-command.c
@@
-577,9
+577,7
@@
static void prepare_run_command_v_opt(struct child_process *cmd,
int run_command_v_opt(const char **argv, int opt)
{
- struct child_process cmd;
- prepare_run_command_v_opt(&cmd, argv, opt);
- return run_command(&cmd);
+ return run_command_v_opt_cd_env(argv, opt, NULL, NULL);
}
int run_command_v_opt_cd_env(const char **argv, int opt, const char *dir, const char *const *env)