File tree Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Expand file tree Collapse file tree 8 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ test_expect_success 'bad setup: invalid .git file format' '
32
32
echo "git rev-parse accepted an invalid .git file"
33
33
false
34
34
fi &&
35
- if ! grep -qe "Invalid gitfile format" .err
35
+ if ! grep "Invalid gitfile format" .err
36
36
then
37
37
echo "git rev-parse returned wrong error"
38
38
false
@@ -46,7 +46,7 @@ test_expect_success 'bad setup: invalid .git file path' '
46
46
echo "git rev-parse accepted an invalid .git file path"
47
47
false
48
48
fi &&
49
- if ! grep -qe "Not a git repository" .err
49
+ if ! grep "Not a git repository" .err
50
50
then
51
51
echo "git rev-parse returned wrong error"
52
52
false
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ test_expect_success 'git diff' '
171
171
172
172
test_expect_success ' git grep' '
173
173
(cd repo.git/work/sub &&
174
- GIT_DIR=../.. GIT_WORK_TREE=.. git grep -l changed | grep -q dir/tracked)
174
+ GIT_DIR=../.. GIT_WORK_TREE=.. git grep -l changed | grep dir/tracked)
175
175
'
176
176
177
177
test_done
Original file line number Diff line number Diff line change @@ -226,7 +226,7 @@ test_expect_success 'git add '\''fo\[ou\]bar'\'' ignores foobar' '
226
226
git reset --hard &&
227
227
touch fo\[ou\]bar foobar &&
228
228
git add ' \' ' fo\[ou\]bar' \' ' &&
229
- git ls-files fo\[ou\]bar | grep -F fo\[ou\]bar &&
229
+ git ls-files fo\[ou\]bar | fgrep fo\[ou\]bar &&
230
230
! ( git ls-files foobar | grep foobar )
231
231
'
232
232
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ test_expect_success 'am --keep really keeps the subject' '
165
165
git am --keep patch4 &&
166
166
! test -d .git/rebase-apply &&
167
167
git cat-file commit HEAD |
168
- grep -q -F "Re: Re: Re: [PATCH 1/5 v2] third"
168
+ fgrep "Re: Re: Re: [PATCH 1/5 v2] third"
169
169
'
170
170
171
171
test_expect_success ' am -3 falls back to 3-way merge' '
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ test_expect_success 'checkout' '
53
53
(
54
54
cd test && git checkout b1
55
55
) >actual &&
56
- grep -e "have 1 and 1 different" actual
56
+ grep "have 1 and 1 different" actual
57
57
'
58
58
59
59
test_expect_success ' status' '
@@ -63,7 +63,7 @@ test_expect_success 'status' '
63
63
# reports nothing to commit
64
64
test_must_fail git status
65
65
) >actual &&
66
- grep -e "have 1 and 1 different" actual
66
+ grep "have 1 and 1 different" actual
67
67
'
68
68
69
69
Original file line number Diff line number Diff line change 109
109
'
110
110
111
111
test_expect_success " grep -c $L (no /dev/null)" '
112
- ! git grep -c test $H | grep -q /dev/null
112
+ ! git grep -c test $H | grep /dev/null
113
113
'
114
114
115
115
done
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ test_expect_success '-A option leaves unreachable objects unpacked' '
29
29
git repack -A -d -l &&
30
30
# verify objects are packed in repository
31
31
test 3 = $(git verify-pack -v -- .git/objects/pack/*.idx |
32
- grep -e "^ $fsha1 " -e "^ $csha1 " -e "^ $tsha1 " |
32
+ egrep "^( $fsha1| $csha1| $tsha1) " |
33
33
sort | uniq | wc -l) &&
34
34
git show $fsha1 &&
35
35
git show $csha1 &&
@@ -41,7 +41,7 @@ test_expect_success '-A option leaves unreachable objects unpacked' '
41
41
git repack -A -d -l &&
42
42
# verify objects are retained unpacked
43
43
test 0 = $(git verify-pack -v -- .git/objects/pack/*.idx |
44
- grep -e "^ $fsha1 " -e "^ $csha1 " -e "^ $tsha1 " |
44
+ egrep "^( $fsha1| $csha1| $tsha1) " |
45
45
sort | uniq | wc -l) &&
46
46
git show $fsha1 &&
47
47
git show $csha1 &&
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ gitweb_run () {
56
56
rm -f gitweb.log &&
57
57
perl -- " $TEST_DIRECTORY /../gitweb/gitweb.perl" \
58
58
> /dev/null 2> gitweb.log &&
59
- if grep -q -s " ^[[]" gitweb.log > /dev/null; then false ; else true ; fi
59
+ if grep " ^[[]" gitweb.log > /dev/null 2>&1 ; then false ; else true ; fi
60
60
61
61
# gitweb.log is left for debugging
62
62
}
You can’t perform that action at this time.
0 commit comments