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)' '
41
41
chmod +x file &&
42
42
git add file &&
43
43
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
45
46
'
46
47
47
48
test_expect_success FILEMODE ' mode update (no index)' '
@@ -60,7 +61,8 @@ test_expect_success FILEMODE 'mode update (with index)' '
60
61
test_expect_success FILEMODE ' mode update (index only)' '
61
62
git reset --hard &&
62
63
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
64
66
'
65
67
66
68
test_expect_success FILEMODE ' empty mode is rejected' '
You can’t perform that action at this time.
0 commit comments