projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc27d1d
)
MTrack/SCM/Git/CommitHookBridge.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 29 Nov 2011 08:21:20 +0000
(16:21 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 29 Nov 2011 08:21:20 +0000
(16:21 +0800)
MTrack/SCM/Git/CommitHookBridge.php
MTrack/SCM/Git/CommitHookBridge.php
patch
|
blob
|
history
diff --git
a/MTrack/SCM/Git/CommitHookBridge.php
b/MTrack/SCM/Git/CommitHookBridge.php
index
dc8bf04
..
fbab57b
100644
(file)
--- a/
MTrack/SCM/Git/CommitHookBridge.php
+++ b/
MTrack/SCM/Git/CommitHookBridge.php
@@
-38,13
+38,13
@@
class MTrack_SCM_Git_CommitHookBridge extends IMTrackCommitHookBridge
if (!preg_match("/^commit\s+(\S+)$/", $line)) {
throw new Exception("unexpected output from git log: $line");
}
-
+ $this->props = array();
// read key: value properties like Author: / Date:
while (($line = fgets($fp)) !== false) {
$line = rtrim($line);
if (!strlen($line)) break;
if (preg_match("/^(\S+):\s*(.*)\s*$/", $line, $M)) {
- $props[$M[1]] = $M[2];
+ $
this->
props[$M[1]] = $M[2];
}
}
// read the commit log.