MTrack/SCM/Git/Repo.php
[web.mtrack] / MTrack / SCM / Git / Repo.php
index 9885ed4..2c93a2f 100644 (file)
@@ -253,13 +253,13 @@ HOOK;
                 
                 
             /// oh what a horible hack.. - bad api design here.
-            } else if (is_object($limit) ) {
+            } else if ($limit ) {
                 foreach($limit as $k=>$v) {
                      
-                    $args[] = ($k = '-') ? $v : ('--'. $k .'='. $v);
+                    $args[] = ($k == '-') ? $v : ('--'. $k .'='. $v);
                     
                 }
-                $args[] = "--skip={$limit[0]} --max-count={$limit[1]}";
+                 
             } else {
                     
                 $args[] = "--since=$limit";