MTrack/SCM/Git/Repo.php
authorAlan Knowles <alan@roojs.com>
Sat, 3 Nov 2012 05:03:40 +0000 (13:03 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 3 Nov 2012 05:03:40 +0000 (13:03 +0800)
MTrack/SCM/Git/Repo.php

index 5b54a81..f53c9e6 100644 (file)
@@ -253,7 +253,7 @@ HOOK;
             } else if (is_array($limit) ) {
                 foreach($limit as $k=>$v) {
                      
-                    $args[] = ($k = '-') ? '' : ('--'. $k .'='. $v);
+                    $args[] = ($k = '-') ? $v : ('--'. $k .'='. $v);
                     
                 }
                 $args[] = "--skip={$limit[0]} --max-count={$limit[1]}";