File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ test_expect_success FILEMODE 'same mode (index only)' '
4141 chmod +x file &&
4242 git add file &&
4343 git apply --cached patch-0.txt &&
44- git ls-files -s file | grep "^100755"
44+ git ls-files -s file >ls-files-output &&
45+ test_grep "^100755" ls-files-output
4546'
4647
4748test_expect_success FILEMODE ' mode update (no index)' '
@@ -60,7 +61,8 @@ test_expect_success FILEMODE 'mode update (with index)' '
6061test_expect_success FILEMODE ' mode update (index only)' '
6162 git reset --hard &&
6263 git apply --cached patch-1.txt &&
63- git ls-files -s file | grep "^100755"
64+ git ls-files -s file >ls-files-output &&
65+ test_grep "^100755" ls-files-output
6466'
6567
6668test_expect_success FILEMODE ' empty mode is rejected' '
You can’t perform that action at this time.
0 commit comments