From 4a753bfab25f4db48a9733073fe19f70c292cfac Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Sat, 3 Nov 2012 13:01:49 +0800 Subject: [PATCH] MTrack/SCM/Git/Repo.php --- MTrack/SCM/Git/Repo.php | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.39.2