Skip to content

Commit

Permalink
changed trim() calls to rtrim() because leading whitespace might be r…
Browse files Browse the repository at this point in the history
…elevant (e.g. in status output)
  • Loading branch information
sgehrig committed Aug 18, 2011
1 parent b058584 commit 5d01872
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TQ/Git/Cli/CallResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ class CallResult
public function __construct(Call $cliCall, $stdOut, $stdErr, $returnCode)
{
$this->cliCall = $cliCall;
$this->stdOut = trim((string)$stdOut);
$this->stdErr = trim((string)$stdErr);
$this->stdOut = rtrim((string)$stdOut);
$this->stdErr = rtrim((string)$stdErr);
$this->returnCode = (int)$returnCode;
}

Expand Down

0 comments on commit 5d01872

Please sign in to comment.