Skip to content

Commit

Permalink
Merge pull request #687 from Hologos/hotfix/empty-tree-searches
Browse files Browse the repository at this point in the history
Fixes empty tree searches.
  • Loading branch information
klaussilveira committed Oct 5, 2016
2 parents f7cd359 + 6234b89 commit b507e27
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Git/Repository.php
Expand Up @@ -271,6 +271,10 @@ public function searchCommitLog($query, $branch)

public function searchTree($query, $branch)
{
if(empty($query)) {
return null;
}

$query = escapeshellarg($query);

try {
Expand Down

0 comments on commit b507e27

Please sign in to comment.