php8 fixes
[web.mtrack] / MTrack / SCM / Git / Event.php
index a1ae4e0..d724b0d 100644 (file)
@@ -24,6 +24,8 @@ class MTrack_SCM_Git_Event extends MTrackSCMEvent
     public $files;
 
     public $commit;
+    var $tags;
+    var $files_array;
     /**
      * this is based on the output from git --raw --numstat
      */
@@ -111,9 +113,12 @@ class MTrack_SCM_Git_Event extends MTrackSCMEvent
             $info = preg_split('#\s+#', substr($line ,1), 3);
            //print_r($info);
             $name = $info[2];
+            if (!isset($ent->files[$name])) {
+                $ent->files[$name] = new stdClass; // ??
+            }
+            
             $ent->files[$name]->added = $info[0];            
             $ent->files[$name]->removed = $info[1];
-            
         }
         // fixme..
         //if (!count($ent->branches)) {