From: Alan Knowles Date: Wed, 7 Nov 2018 01:54:15 +0000 (+0800) Subject: Attribute changed MTrack/SCM/Git/CommitHookBridge.php X-Git-Url: http://git.roojs.org/?p=web.mtrack;a=commitdiff_plain;h=a6612b0bdeea73c6290dd5f79b33dd646d8a5da1 Attribute changed MTrack/SCM/Git/CommitHookBridge.php --- diff --git a/MTrack/SCM/Git/CommitHookBridge.php b/MTrack/SCM/Git/CommitHookBridge.php index ecdb9c2b..b16178c2 100644 --- a/MTrack/SCM/Git/CommitHookBridge.php +++ b/MTrack/SCM/Git/CommitHookBridge.php @@ -28,6 +28,10 @@ class MTrack_SCM_Git_CommitHookBridge extends IMTrackCommitHookBridge list($old, $new, $ref) = explode(' ', trim($line), 3); $this->commits[] = $new; + if (preg_match('/^0+$/',$old)) { + continue; // it's a new branch - ignore.. + } + $fp = $this->repo->git( 'log', '--no-color', '--name-status', '--date=rfc', "$old..$new"); //$ref, used to be in here?? - but it breaks stuff...