@@ -26,6 +26,10 @@ void test_checkout_index__initialize(void)
26
26
void test_checkout_index__cleanup (void )
27
27
{
28
28
cl_git_sandbox_cleanup ();
29
+
30
+ /* try to remove alternative dir */
31
+ if (git_path_isdir ("alternative" ))
32
+ git_futils_rmdir_r ("alternative" , NULL , GIT_RMDIR_REMOVE_FILES );
29
33
}
30
34
31
35
void test_checkout_index__cannot_checkout_a_bare_repository (void )
@@ -576,9 +580,10 @@ void test_checkout_index__target_directory_from_bare(void)
576
580
cl_assert_equal_i (0 , cts .n_ignored );
577
581
cl_assert_equal_i (3 , cts .n_updates );
578
582
579
- check_file_contents ("./alternative/README" , "hey there\n" );
580
- check_file_contents ("./alternative/branch_file.txt" , "hi\nbye!\n" );
581
- check_file_contents ("./alternative/new.txt" , "my new file\n" );
583
+ /* files will have been filtered if needed, so strip CR */
584
+ check_file_contents_nocr ("./alternative/README" , "hey there\n" );
585
+ check_file_contents_nocr ("./alternative/branch_file.txt" , "hi\nbye!\n" );
586
+ check_file_contents_nocr ("./alternative/new.txt" , "my new file\n" );
582
587
583
588
cl_git_pass (git_futils_rmdir_r (
584
589
"alternative" , NULL , GIT_RMDIR_REMOVE_FILES ));
0 commit comments