php8 fixes
[web.mtrack] / MTrackWeb / Hook / git.php
index 0fb629b..bd52722 100755 (executable)
@@ -39,6 +39,7 @@ class MTrackWeb_Hook_git extends MTrackWeb
 {
     
     static $cli_desc = "Commit hook for git - see source for usage";
+    var $authUser;
     
     function getAuth()
     {
@@ -51,7 +52,7 @@ class MTrackWeb_Hook_git extends MTrackWeb
     
     
      
-    function get($action)
+    function get($action='')
     {
         try {
             $repo = DB_DataObject::factory('mtrack_repos');
@@ -89,7 +90,6 @@ class MTrackWeb_Hook_git extends MTrackWeb
                     'authUser' => $this->authUser,
             ));
              
-             
             switch ($action) {
                 
                 case 'pre':
@@ -110,8 +110,9 @@ class MTrackWeb_Hook_git extends MTrackWeb
                         if (!$res) {
                             echo "Skip - commit already exists\n";
                         }
-                        
                     }
+                    
+                    // in our system this happens when we merge normally.
                     foreach($checker->deferred as $ticket=> $info) {
                         foreach($info['changes'] as $ev) {
                             $cg = DB_DataObject::factory('mtrack_change');