php8 fixes
[web.mtrack] / MTrack / SCM / Git / Repo.php
index d71aa43..07b0e61 100644 (file)
@@ -9,6 +9,8 @@ class MTrack_SCM_Git_Repo extends MTrack_Repo
   public $gitdir = null;
 
   public $debug = false;
+  
+  var $project_id;
 
   public function getSCMMetaData() {
     return array(
@@ -242,8 +244,7 @@ HOOK;
         } else {
             $args[] = "master";
         }
-       var_dump($rev);
-    
+     
         if ($limit !== null) {
             if (is_int($limit)) {
                 $args[] = "--max-count=$limit";
@@ -272,6 +273,7 @@ HOOK;
         $args[] = "--no-abbrev";
         $args[] = "--numstat";
         $args[] = "--date=rfc";
+        $args[] = "--source"; // show the branch..
         
         
         //echo '<PRE>';print_r($args);echo '</PRE>';
@@ -286,7 +288,7 @@ HOOK;
         $commit = null;
         while (true) {
           $line = fgets($fp);
-          if ($line === false) {
+          if ($line === false) { //end of file..
             if ($commit !== null) {
               $commits[] = $commit;
             }
@@ -388,7 +390,7 @@ HOOK;
               var_dump('git ' . join (' ' , $a));
             //  die("oops");
           }
-         // echo "git " . implode(" " , $a) . "\n";
+          //echo "git " . implode(" " , $a) . "\n";
           return MTrackSCM::run('git', 'read', $a);
     }