diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-07-29 22:38:18 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-07-29 22:38:18 +0300 |
commit | 292a0de9982aff5e4f952214c1b9f762d8a1585a (patch) | |
tree | 6948ec1ee4bee6865b761aa200c8f4b7e9c9bdb7 /builtin | |
parent | 8eb5097bea042205810781d786a8eb7abd2962a9 (diff) | |
parent | 30db18b148c4951deb2c870b5243fb5b18ecb5ed (diff) |
Merge branch 'ms/submodule-foreach-fix' into maint
"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')
-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 0bf4aa088e..afaf0819c9 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)) |