From: Alan Knowles Date: Tue, 15 Jan 2019 10:32:24 +0000 (+0800) Subject: Fix #5661 - MTrack - daily email large and no branch X-Git-Url: http://git.roojs.org/?p=web.mtrack;a=commitdiff_plain;h=298c0ef1bfd6b1e156ed71fd32d5fdd5c610336c Fix #5661 - MTrack - daily email large and no branch --- diff --git a/MTrack/SCM/Git/CommitHookBridge.php b/MTrack/SCM/Git/CommitHookBridge.php index 2c5dee21..328c93b8 100644 --- 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)) {