3 #include "run-command.h"
6 int cmd__subprocess(int argc
, const char **argv
)
8 struct child_process cp
= CHILD_PROCESS_INIT
;
11 setup_git_directory_gently(&nogit
);
13 die("No git repo found");
14 if (argc
> 1 && !strcmp(argv
[1], "--setup-work-tree")) {
19 strvec_pushv(&cp
.args
, (const char **)argv
+ 1);
20 return run_command(&cp
);