From: Alan Knowles Date: Sat, 3 Nov 2012 05:01:49 +0000 (+0800) Subject: MTrack/SCM/Git/Repo.php X-Git-Url: http://git.roojs.org/?p=web.mtrack;a=commitdiff_plain;h=4a753bfab25f4db48a9733073fe19f70c292cfac MTrack/SCM/Git/Repo.php --- diff --git a/MTrack/SCM/Git/Repo.php b/MTrack/SCM/Git/Repo.php index bf096e29..72662a2d 100644 --- a/MTrack/SCM/Git/Repo.php +++ b/MTrack/SCM/Git/Repo.php @@ -252,7 +252,9 @@ HOOK; $args[] = "--skip={$limit[0]} --max-count={$limit[1]}"; } else if (is_array($limit) ) { foreach($line as $k=>$v) { + $args[] = ($k = '-') ? '' : ('--'. $k .'='. $v); + } $args[] = "--skip={$limit[0]} --max-count={$limit[1]}"; } else {