MTrack/SCM/Git/Repo.php
authorAlan Knowles <alan@akbkhome.com>
Mon, 5 Sep 2011 10:47:16 +0000 (18:47 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 5 Sep 2011 10:47:16 +0000 (18:47 +0800)
MTrack/SCM/Git/Repo.php

index 63f5901..01b25dc 100644 (file)
@@ -239,7 +239,7 @@ HOOK;
         } else {
             $args[] = "master";
         }
-        
+        )
     
         if ($limit !== null) {
             if (is_int($limit)) {
@@ -261,7 +261,10 @@ HOOK;
         
         //echo '<PRE>';print_r($args);echo '</PRE>';
         $path = ltrim($path, '/');
-        //print_R(array($args, '--' ,$path));
+        
+        
+        
+        print_R(array($args, '--' ,$path));exit;
         $fp = $this->git('log', $args, '--', $path);
 
         $commits = array();
@@ -345,34 +348,34 @@ HOOK;
     return array($parents, $kids);
   }
 
-  function git()
-  {
-         $args = func_get_args();
-        $a = array(
-          "--git-dir=$this->gitdir"
-        );
-        
-        
-        
-        if ($this->gitdir != $this->repopath) {
-        //    print_r(array($this->gitdir , $this->repopath));
-            
-          //$a[] = "--work-tree=$this->repopath";
-        }
-        foreach ($args as $arg) {
-            if (is_array($arg)) {
-                $a = array_merge($a, $arg);
-                continue;
-            }
-            $a[] = $arg;
-        }
-        if ($this->debug) { 
-            var_dump('git ' . join (' ' , $a));
-          //  die("oops");
-        }
-        //print_r($a);
-        return MTrackSCM::run('git', 'read', $a);
-  }
+    function git()
+    {
+           $args = func_get_args();
+          $a = array(
+            "--git-dir=$this->gitdir"
+          );
+          
+          
+          
+          if ($this->gitdir != $this->repopath) {
+          //    print_r(array($this->gitdir , $this->repopath));
+              
+            //$a[] = "--work-tree=$this->repopath";
+          }
+          foreach ($args as $arg) {
+              if (is_array($arg)) {
+                  $a = array_merge($a, $arg);
+                  continue;
+              }
+              $a[] = $arg;
+          }
+          if ($this->debug) { 
+              var_dump('git ' . join (' ' , $a));
+            //  die("oops");
+          }
+          //print_r($a);
+          return MTrackSCM::run('git', 'read', $a);
+    }
   
    
     function commitLogToEvent($str) {