Commit: 04cd724385b1ccb846f846d14250caf34628d0f4
Author: David Soria Parra(d...@php.net)         Mon, 19 Mar 2012 18:48:32 +0100
Committer: David Soria Parra(d...@php.net)      Mon, 19 Mar 2012 18:48:32 +0100
Parents: a906187e5b716c29691abfe44d1dc876232b711d

Link: 
http://git.php.net/?p=karma.git;a=commitdiff;h=04cd724385b1ccb846f846d14250caf34628d0f4

Log:
Make sure we strip the output before

Changed paths:
  M  lib/Git.php


Diff:
04cd724385b1ccb846f846d14250caf34628d0f4
diff --git a/lib/Git.php b/lib/Git.php
index fc0f0c9..04e4d44 100644
--- a/lib/Git.php
+++ b/lib/Git.php
@@ -40,6 +40,6 @@ class Git
         array_shift($args);
         $cmd = vsprintf($cmd, $args);
         $output = shell_exec($cmd);
-        return (string)$output;
+        return trim($output);
     }
 }



--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to