projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
aeec040
)
Merged from 5.2: Fixed warning in Git's stats gathering
author
Roland Mas
<lolando@debian.org>
Mon, 2 Dec 2013 10:08:51 +0000
(11:08 +0100)
committer
Roland Mas
<lolando@debian.org>
Mon, 2 Dec 2013 10:08:51 +0000
(11:08 +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
c1637a7
..
883ebd8
100644
(file)
--- a/
src/plugins/scmgit/common/GitPlugin.class.php
+++ b/
src/plugins/scmgit/common/GitPlugin.class.php
@@
-735,7
+735,8
@@
class GitPlugin extends SCMPlugin {
}
} else {
// Short-commit stats line
- preg_match("/^(?P<mode>[AMD])\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;