Read the output directly.
diff --git a/commits/repositories.php b/commits/repositories.php
index d6530e7..04bd0f4 100644
--- a/commits/repositories.php
+++ b/commits/repositories.php
@@ -10,12 +10,14 @@
* Wayne Beaton (Eclipse Foundation)- initial API and implementation
*******************************************************************************/
$path = '/gitroot/';
+//$path = '/home/wayne/git/';
$find="find $path -type d -name *.git | xargs -I '{}' git --git-dir={} rev-parse --git-dir 2> /dev/null";
-exec($find, $repositories);
-foreach($repositories as $repository) {
- echo "$repository\n";
+$handle = popen($find, 'r');
+while ($repository = fgets($handle)) {
+ echo $repository;
}
+pclose($handle);
// Pull in a list of repostories