run-command: use the async-signal-safe execv instead of execvp
[gitweb.git] / submodule.c
index 83b13b8ff5fa31a213dcd1d87f67a919441494fa..7c3c4b17fb10b45536bc0680b85d19a8b811f919 100644 (file)
@@ -576,6 +576,7 @@ void show_submodule_inline_diff(FILE *f, const char *path,
        if (!(dirty_submodule & DIRTY_SUBMODULE_MODIFIED))
                argv_array_push(&cp.args, oid_to_hex(new));
 
+       prepare_submodule_repo_env(&cp.env_array);
        if (run_command(&cp))
                fprintf(f, "(diff failed)\n");