projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
05b6ea1
)
Fix #5661 - MTrack - daily email large and no branch
author
Alan Knowles
<alan@roojs.com>
Tue, 15 Jan 2019 10:32:24 +0000
(18:32 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 15 Jan 2019 10:32:24 +0000
(18:32 +0800)
MTrack/SCM/Git/CommitHookBridge.php
patch
|
blob
|
history
diff --git
a/MTrack/SCM/Git/CommitHookBridge.php
b/MTrack/SCM/Git/CommitHookBridge.php
index
2c5dee2
..
328c93b
100644
(file)
--- a/
MTrack/SCM/Git/CommitHookBridge.php
+++ b/
MTrack/SCM/Git/CommitHookBridge.php
@@
-26,7
+26,7
@@
class MTrack_SCM_Git_CommitHookBridge extends IMTrackCommitHookBridge
while (($line = fgets(STDIN)) !== false) {
echo "got: $line\n";
list($old, $new, $ref) = explode(' ', trim($line), 3);
- $this->branch =
$ref
;
+ $this->branch =
preg_replace('#^refs/heads/#','', $ref)
;
$this->commits[] = $new;
if (preg_match('/^0+$/',$old)) {