Fix #6661 - modify hooks to update timeshetet
authorAlan Knowles <alan@roojs.com>
Wed, 31 Mar 2021 07:48:22 +0000 (15:48 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Mar 2021 07:48:22 +0000 (15:48 +0800)
MTrack/CommitHookChangeEvent.php
MTrackWeb/Hook/git.php

index dd49598..3319a96 100644 (file)
@@ -18,4 +18,6 @@ class MTrackCommitHookChangeEvent {
   /** a hash value that will be consistent when being merged from multiple
    * repos */
   public $hash;
+  
+  public $branch; 
 }
index e8cb12c..ce00629 100755 (executable)
@@ -110,6 +110,8 @@ class MTrackWeb_Hook_git extends MTrackWeb
                             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');