bisect: use "bisect--helper" and remove "filter_skipped" function
[gitweb.git] / t / t7400-submodule-basic.sh
index 21c19a28cfdcef1478a97168cae8b6d6cae597a1..af690ec6c1f36871dbd0044d22ab78ab95103541 100755 (executable)
@@ -283,4 +283,17 @@ test_expect_success 'gracefully add submodule with a trailing slash' '
 
 '
 
+test_expect_success 'ls-files gracefully handles trailing slash' '
+
+       test "init" = "$(git ls-files init/)"
+
+'
+
+test_expect_success 'submodule <invalid-path> warns' '
+
+       git submodule no-such-submodule 2> output.err &&
+       grep "^error: .*no-such-submodule" output.err
+
+'
+
 test_done