pack-objects: turn off bitmaps when we see --shallow lines
[gitweb.git] / t / t7407-submodule-foreach.sh
index b64c9ed8e73644b52aff38c7b4dca248ab690c73..7ca10b8606372051ff1a4093e320722f7784fa6b 100755 (executable)
@@ -325,4 +325,13 @@ test_expect_success 'command passed to foreach --recursive retains notion of std
        test_cmp expected actual
 '
 
+test_expect_success 'multi-argument command passed to foreach is not shell-evaluated twice' '
+       (
+               cd super &&
+               git submodule foreach "echo \\\"quoted\\\"" > ../expected &&
+               git submodule foreach echo \"quoted\" > ../actual
+       ) &&
+       test_cmp expected actual
+'
+
 test_done