mirror of
https://github.com/klaussilveira/gitlist.git
synced 2025-11-17 19:20:56 +01:00
Ignore binary files during search
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user