Let ls-files strip trailing slashes in submodules' paths
[gitweb.git] / t / t7400-submodule-basic.sh
index 2ec7ac6a510c5b83bc1ee6ce428379beb7a8b5ef..a74f24c0db69aa964aaf0e83f8ab978ffc0cc7a2 100755 (executable)
@@ -234,4 +234,10 @@ 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_done