summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-04-25 16:41:24 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-04-25 16:41:24 +0900
commitf1c9f6ce38445c7cba7dd5b2a8c329c8fff90993 (patch)
tree337e357880660c661dda55a6cd925436346a6b78 /t
parentMerge branch 'js/iso8895-test-on-apfs' (diff)
parentsubmodule foreach: fix "<command> --quiet" not being respected (diff)
downloadtgif-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-xt/t7407-submodule-foreach.sh10
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