diff --git a/t/t2029-checkout-long-paths.sh b/t/t2029-checkout-long-paths.sh index 18e5eabe15..01e5303a1a 100755 --- a/t/t2029-checkout-long-paths.sh +++ b/t/t2029-checkout-long-paths.sh @@ -36,13 +36,11 @@ test_expect_success 'checkout of long paths without core.longpaths fails' ' test_expect_success 'checkout of long paths with core.longpaths works' ' git config core.longpaths true && git checkout -f && - (cd longpa* && - test_path_is_file longtestfile) + test_path_is_file longpa*/longtestfile ' test_expect_success 'update of long paths' ' - (cd longpa* && - echo frotz >> longtestfile) && + echo frotz >>$(ls longpa*/longtestfile) && echo $path > expect && git ls-files -m > actual && test_cmp expect actual &&