From ab33a63c49654b03c8cbcc6e102b1f5d8d1f494c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yoander=20Vald=C3=A9s=20Rodr=C3=ADguez?= Date: Fri, 25 May 2012 16:43:40 -0400 Subject: [PATCH] checking repositories var as empty array --- lib/Git/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Git/Client.php b/lib/Git/Client.php index aafbca0..bdb5a48 100644 --- a/lib/Git/Client.php +++ b/lib/Git/Client.php @@ -52,7 +52,7 @@ class Client { $repositories = $this->recurseDirectory($path); - if (!isset($repositories)) { + if (!empty($repositories)) { throw new \RuntimeException('There are no GIT repositories in ' . $path); }