Skip to content

Commit

Permalink
Merge pull request klaussilveira#687 from Hologos/hotfix/empty-tree-s…
Browse files Browse the repository at this point in the history
…earches

Fixes empty tree searches.
  • Loading branch information
klaussilveira authored 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
Original file line number Diff line number Diff line change
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.