[git] commit karma.git: lib/Git.php
| From: | David Soria Parra | Date: | Mon, 19 Mar 2012 17:59:42 +0000 |
| Subject: | [git] commit karma.git: lib/Git.php | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-67968@lists.php.net to get a copy of this message | ||
Commit: 04cd724385b1ccb846f846d14250caf34628d0f4
Author: David Soria Parra(dsp@php.net) Mon, 19 Mar 2012 18:48:32 +0100
Committer: David Soria Parra(dsp@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);
}
}