From 9643d3b3ee922f0c48b72b83c7c12215f645b8f5 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Sat, 30 Jul 2011 20:06:37 +0200 Subject: [PATCH] make all repos public if no gitweb.projects file is available --- php_scripts/github.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php_scripts/github.php b/php_scripts/github.php index 39ae136..cf6e286 100644 --- a/php_scripts/github.php +++ b/php_scripts/github.php @@ -57,7 +57,7 @@ foreach ($files as $dir) { $request = array( 'name' => $repoTitle, 'description' => $repoDesc, - 'public' => in_array($dir, $public), + 'public' => in_array($dir, $public) || count($public) == 0, 'has_issues' => false, 'has_wiki' => false );