Ignore binary files during search

This commit is contained in:
Klaus Silveira
2012-09-15 14:19:16 -03:00
parent 4e15580904
commit 9f81210112

View File

@@ -53,7 +53,7 @@ class Repository extends BaseRepository
public function searchTree($query, $branch) public function searchTree($query, $branch)
{ {
try { 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) { } catch (\RuntimeException $e) {
return false; return false;
} }