diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-09 15:25:46 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-09 15:25:46 -0700 |
commit | 968eecbd01e06aa8cae6c7fd8bf0a7b9bbd3b1fc (patch) | |
tree | 44a2146a63fcb61544a4d9864d56f9ae61e40cc4 /builtin/submodule--helper.c | |
parent | Merge branch 'jh/msvc' (diff) | |
parent | submodule foreach: fix recursion of options (diff) | |
download | tgif-968eecbd01e06aa8cae6c7fd8bf0a7b9bbd3b1fc.tar.xz |
Merge branch 'ms/submodule-foreach-fix'
"git submodule foreach" did not protect command line options passed
to the command to be run in each submodule correctly, when the
"--recursive" option was in use.
* ms/submodule-foreach-fix:
submodule foreach: fix recursion of options
Diffstat (limited to 'builtin/submodule--helper.c')
-rw-r--r-- | builtin/submodule--helper.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/submodule--helper.c b/builtin/submodule--helper.c index 13da32d3b7..909e77e802 100644 --- a/builtin/submodule--helper.c +++ b/builtin/submodule--helper.c @@ -540,6 +540,7 @@ static void runcommand_in_submodule_cb(const struct cache_entry *list_item, if (info->quiet) argv_array_push(&cpr.args, "--quiet"); + argv_array_push(&cpr.args, "--"); argv_array_pushv(&cpr.args, info->argv); if (run_command(&cpr)) |