diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-04-25 16:41:24 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-04-25 16:41:24 +0900 |
commit | f1c9f6ce38445c7cba7dd5b2a8c329c8fff90993 (patch) | |
tree | 337e357880660c661dda55a6cd925436346a6b78 /t | |
parent | Merge branch 'js/iso8895-test-on-apfs' (diff) | |
parent | submodule foreach: fix "<command> --quiet" not being respected (diff) | |
download | tgif-f1c9f6ce38445c7cba7dd5b2a8c329c8fff90993.tar.xz |
Merge branch 'nd/submodule-foreach-quiet'
"git submodule foreach <command> --quiet" did not pass the option
down correctly, which has been corrected.
* nd/submodule-foreach-quiet:
submodule foreach: fix "<command> --quiet" not being respected
Diffstat (limited to 't')
-rwxr-xr-x | t/t7407-submodule-foreach.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/t/t7407-submodule-foreach.sh b/t/t7407-submodule-foreach.sh index 77729ac4aa..706ae762e0 100755 --- a/t/t7407-submodule-foreach.sh +++ b/t/t7407-submodule-foreach.sh @@ -411,4 +411,14 @@ test_expect_success 'multi-argument command passed to foreach is not shell-evalu test_cmp expected actual ' +test_expect_success 'option-like arguments passed to foreach commands are not lost' ' + ( + cd super && + git submodule foreach "echo be --quiet" > ../expected && + git submodule foreach echo be --quiet > ../actual + ) && + grep -sq -e "--quiet" expected && + test_cmp expected actual +' + test_done |