Merge branch 'js/exec-path-coverity-workaround'
[gitweb.git] / git.c
diff --git a/git.c b/git.c
index bc2f2a7ec9dd3fe1bc92ab9d5f1e52987fe7f899..b367cf6686029a7b54ff4b3ca3d63be2409904b3 100644 (file)
--- a/git.c
+++ b/git.c
@@ -434,7 +434,7 @@ static struct cmd_struct commands[] = {
        { "fsck-objects", cmd_fsck, RUN_SETUP },
        { "gc", cmd_gc, RUN_SETUP },
        { "get-tar-commit-id", cmd_get_tar_commit_id },
-       { "grep", cmd_grep, RUN_SETUP_GENTLY },
+       { "grep", cmd_grep, RUN_SETUP_GENTLY | SUPPORT_SUPER_PREFIX },
        { "hash-object", cmd_hash_object },
        { "help", cmd_help },
        { "index-pack", cmd_index_pack, RUN_SETUP_GENTLY },
@@ -493,7 +493,7 @@ static struct cmd_struct commands[] = {
        { "stage", cmd_add, RUN_SETUP | NEED_WORK_TREE },
        { "status", cmd_status, RUN_SETUP | NEED_WORK_TREE },
        { "stripspace", cmd_stripspace },
-       { "submodule--helper", cmd_submodule__helper, RUN_SETUP },
+       { "submodule--helper", cmd_submodule__helper, RUN_SETUP | SUPPORT_SUPER_PREFIX},
        { "symbolic-ref", cmd_symbolic_ref, RUN_SETUP },
        { "tag", cmd_tag, RUN_SETUP },
        { "unpack-file", cmd_unpack_file, RUN_SETUP },
@@ -588,6 +588,7 @@ static void execv_dashed_external(const char **argv)
        argv_array_pushf(&cmd.args, "git-%s", argv[0]);
        argv_array_pushv(&cmd.args, argv + 1);
        cmd.clean_on_exit = 1;
+       cmd.wait_after_clean = 1;
        cmd.silent_exec_failure = 1;
 
        trace_argv_printf(cmd.args.argv, "trace: exec:");