From 6300d92b20f4530ee85dee099a1c159a623a7537 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 6 Sep 2011 17:44:48 +0800 Subject: [PATCH] MTrack/SCM/Git/WorkingCopy.php --- MTrack/SCM/Git/WorkingCopy.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/MTrack/SCM/Git/WorkingCopy.php b/MTrack/SCM/Git/WorkingCopy.php index 771a0b89..252c9533 100644 --- a/MTrack/SCM/Git/WorkingCopy.php +++ b/MTrack/SCM/Git/WorkingCopy.php @@ -77,12 +77,10 @@ class MTrack_SCM_Git_WorkingCopy extends MTrack_SCM_WorkingCopy if (!strlen($reason)) { $reason = 'Changed'; } - echo htmlspecialchars(implode(" ", array('commit', '-a', '-m', $reason , - '--author="' . $CS->name . ' <'. $CS->email . '>"' )));exit; - exit; + return stream_get_contents( - $this->git('commit', '-a', '-m', $reason , - '--author="' . $CS->name . ' <'. $CS->email . '>"' ) + $this->git('commit', '-a', + '--author="' . $CS->name . ' <'. $CS->email . '>"' , '-m', $reason ) ); } -- 2.39.2