Permalink
Browse files

Merge pull request #687 from Hologos/hotfix/empty-tree-searches

Fixes empty tree searches.
2 parents f7cd359 + 6234b89 commit b507e27862bd97a1f7f62d2ec2e525e72c600898 @klaussilveira committed on GitHub Oct 5, 2016
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Git/Repository.php
View
@@ -271,6 +271,10 @@ public function searchCommitLog($query, $branch)
public function searchTree($query, $branch)
{
+ if(empty($query)) {
+ return null;
+ }
+
$query = escapeshellarg($query);
try {

0 comments on commit b507e27

Please sign in to comment.