projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
3d8aeeb
)
Merge branch 'master' of /home/git/private/web.mtrack
author
www-data
<www-data@newweb2.(none)>
Sat, 3 Nov 2012 05:06:18 +0000
(13:06 +0800)
committer
alan@roojs.com
<alan@roojs.com@http.192.168.0.40>
Sat, 3 Nov 2012 05:06:18 +0000
(13:06 +0800)
MTrack/SCM/Git/Repo.php
patch
|
blob
|
history
diff --git
a/MTrack/SCM/Git/Repo.php
b/MTrack/SCM/Git/Repo.php
index
633f090
..
2c93a2f
100644
(file)
--- a/
MTrack/SCM/Git/Repo.php
+++ b/
MTrack/SCM/Git/Repo.php
@@
-253,10
+253,10
@@
HOOK;
/// oh what a horible hack.. - bad api design here.
- } else if (
is_object($limit)
) {
- foreach(
(array)
$limit as $k=>$v) {
+ } else if (
$limit
) {
+ foreach($limit as $k=>$v) {
- $args[] = ($k = '-') ? $v : ('--'. $k .'='. $v);
+ $args[] = ($k =
=
'-') ? $v : ('--'. $k .'='. $v);
}