File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -413,6 +413,30 @@ void test_status_ignore__leading_slash_ignores(void)
413413 cl_assert_equal_i (0 , counts .wrong_sorted_path );
414414}
415415
416+ void test_status_ignore__multiple_leading_slash (void )
417+ {
418+ static const char * test_files [] = {
419+ "empty_standard_repo/a.test" ,
420+ "empty_standard_repo/b.test" ,
421+ "empty_standard_repo/c.test" ,
422+ "empty_standard_repo/d.test" ,
423+ NULL
424+ };
425+
426+ make_test_data ("empty_standard_repo" , test_files );
427+ cl_git_mkfile (
428+ "empty_standard_repo/.gitignore" ,
429+ "a.test\n"
430+ "/b.test\n"
431+ "//c.test\n"
432+ "///d.test\n" );
433+
434+ assert_is_ignored ("a.test" );
435+ assert_is_ignored ("b.test" );
436+ refute_is_ignored ("c.test" );
437+ refute_is_ignored ("d.test" );
438+ }
439+
416440void test_status_ignore__contained_dir_with_matching_name (void )
417441{
418442 static const char * test_files [] = {
You can’t perform that action at this time.
0 commit comments