From 9f8121011247b2fdae7e6c23cb852ace22db423c Mon Sep 17 00:00:00 2001 From: Klaus Silveira Date: Sat, 15 Sep 2012 14:19:16 -0300 Subject: [PATCH] Ignore binary files during search --- src/GitList/Git/Repository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GitList/Git/Repository.php b/src/GitList/Git/Repository.php index 2c6202b..e6ca8c7 100644 --- a/src/GitList/Git/Repository.php +++ b/src/GitList/Git/Repository.php @@ -53,7 +53,7 @@ class Repository extends BaseRepository public function searchTree($query, $branch) { try { - $results = $this->getClient()->run($this, "grep --line-number '$query' $branch"); + $results = $this->getClient()->run($this, "grep -I --line-number '$query' $branch"); } catch (\RuntimeException $e) { return false; }