MTrackWeb/Hook/git.php
authorAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 23:33:15 +0000 (07:33 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 26 Jul 2011 23:33:15 +0000 (07:33 +0800)
MTrackWeb/Hook/git.php

index e8a6c0c..f5ff0eb 100755 (executable)
@@ -83,7 +83,11 @@ class MTrackWeb_Hook_git extends MTrackWeb
                     
                     // at this point we have
                     // checker->no_ticket (contains commits without tickets)
-                    $checker->repo->logCommits($checker->no_ticket);
+                    foreach($checker->no_ticket as $change_event) {
+                        $cg = DB_DataObject::factory('mtrack_change');
+                        $cg->createFromCommit($change_event);
+                        
+                    }
                     
                     print_r($checker);