projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
165f6a4
)
Fixed warning in Git's stats gathering
author
Roland Mas
<lolando@debian.org>
Mon, 2 Dec 2013 10:06:39 +0000
(11:06 +0100)
committer
Roland Mas
<lolando@debian.org>
Mon, 2 Dec 2013 10:06:39 +0000
(11:06 +0100)
src/plugins/scmgit/common/GitPlugin.class.php
patch
|
blob
|
history
diff --git
a/src/plugins/scmgit/common/GitPlugin.class.php
b/src/plugins/scmgit/common/GitPlugin.class.php
index 76d626a4e6e28926b8a51fa1551d9fbdff7809a4..7a44cdb16d5f61492720a34c537814fab8b9de46 100644
(file)
--- a/
src/plugins/scmgit/common/GitPlugin.class.php
+++ b/
src/plugins/scmgit/common/GitPlugin.class.php
@@
-548,7
+548,8
@@
class GitPlugin extends SCMPlugin {
$user2email[$last_user] = strtolower($matches['mail']);
} else {
// Short-commit stats line
$user2email[$last_user] = strtolower($matches['mail']);
} else {
// Short-commit stats line
- preg_match("/^(?P<mode>[AM])\s+(?P<file>.+)$/", $line, $matches);
+ $result = preg_match("/^(?P<mode>[AMD])\s+(?P<file>.+)$/", $line, $matches);
+ if (!$result) continue;
if ($last_user == "") continue;
if (!isset ($usr_adds[$last_user])) $usr_adds[$last_user] = 0;
if (!isset ($usr_updates[$last_user])) $usr_updates[$last_user] = 0;
if ($last_user == "") continue;
if (!isset ($usr_adds[$last_user])) $usr_adds[$last_user] = 0;
if (!isset ($usr_updates[$last_user])) $usr_updates[$last_user] = 0;