diff options
Diffstat (limited to 'builtin')
| -rw-r--r-- | builtin/for-each-repo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/builtin/for-each-repo.c b/builtin/for-each-repo.c index 325a7925f1..82727c4aa2 100644 --- a/builtin/for-each-repo.c +++ b/builtin/for-each-repo.c @@ -2,6 +2,7 @@ #include "builtin.h" #include "config.h" +#include "environment.h" #include "gettext.h" #include "parse-options.h" #include "path.h" @@ -19,6 +20,8 @@ static int run_command_on_repo(const char *path, int argc, const char ** argv) struct child_process child = CHILD_PROCESS_INIT; char *abspath = interpolate_path(path, 0); + sanitize_repo_env(&child.env); + child.git_cmd = 1; strvec_pushl(&child.args, "-C", abspath, NULL); |
