projects
/
web.mtrack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #5661 - MTrack - daily email large and no branch
[web.mtrack]
/
MTrack
/
SCM
/
Git
/
CommitHookBridge.php
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);
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)) {
$this->commits[] = $new;
if (preg_match('/^0+$/',$old)) {