[Fusionforge-commits] FusionForge branch Branch_5_3 updated. e9e45d80397d10168be33968d0b46be8729b8b6a
Sylvain Beucler
beuc-inria at fusionforge.org
Tue Apr 8 17:55:23 CEST 2014
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".
The branch, Branch_5_3 has been updated
via e9e45d80397d10168be33968d0b46be8729b8b6a (commit)
from 0734bbb709b29333a44b535fb90424e029e65b83 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit e9e45d80397d10168be33968d0b46be8729b8b6a
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date: Tue Apr 8 17:53:56 2014 +0200
Don't scan recursively _inside_ git repos to find other git repos (that's slow) - just scan the non-git dirs
diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index 8911bda..9572d80 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -676,19 +676,20 @@ class GitPlugin extends SCMPlugin {
if (!is_dir($path)) {
return array();
}
+ if (file_exists("$path/HEAD")) {
+ return array($path);
+ }
$list = array();
$entries = scandir($path);
foreach ($entries as $entry) {
- $fullname = $path . "/" . $entry;
if (($entry == ".") or ($entry == ".."))
continue;
+ $fullname = $path . "/" . $entry;
if (is_dir($fullname)) {
if (is_link($fullname))
continue;
$result = $this->getRepositories($fullname);
$list = array_merge($list, $result);
- } elseif ($entry == "HEAD") {
- $list[] = $path;
}
}
return $list;
-----------------------------------------------------------------------
Summary of changes:
src/plugins/scmgit/common/GitPlugin.class.php | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
hooks/post-receive
--
FusionForge
More information about the Fusionforge-commits
mailing list