path: root/t/
diff options
authorJeff King <>2008-09-30 08:03:55 (GMT)
committerShawn O. Pearce <>2008-09-30 19:39:58 (GMT)
commit87539416fd25bfa62122ddf4f7a7b8794d5d5aa2 (patch)
tree7816077b5fe32d167749cfff8a791a457139332f /t/
parentc33912ae2463b9e486fb016ffa9d21ff8e62984a (diff)
tests: grep portability fixes
We try to avoid using the "-q" or "-e" options, as they are largely useless, as explained in aadbe44f. There is one exception for "-e" here, which is in t7701 used to produce an "or" of patterns. This can be rewritten as an egrep pattern. This patch also removes use of "grep -F" in favor of the more widely available "fgrep". [sp: Tested on AIX 5.3 by Mike Ralphson, Tested on MinGW by Johannes Sixt] Signed-off-by: Jeff King <> Tested-by: Mike Ralphson <> Tested-by: Johannes Sixt <> Signed-off-by: Shawn O. Pearce <>
Diffstat (limited to 't/')
1 files changed, 1 insertions, 1 deletions
diff --git a/t/ b/t/
index c039ee3..f6a6f83 100755
--- a/t/
+++ b/t/
@@ -171,7 +171,7 @@ test_expect_success 'git diff' '
test_expect_success 'git grep' '
(cd repo.git/work/sub &&
- GIT_DIR=../.. GIT_WORK_TREE=.. git grep -l changed | grep -q dir/tracked)
+ GIT_DIR=../.. GIT_WORK_TREE=.. git grep -l changed | grep dir/tracked)