1
0
Fork 0

Merge pull request #3967 from xi-ao/master

Fixed svn update command
pull/4003/head
Jordi Boggiano 2015-05-05 18:07:08 +01:00
commit 13a3349603
1 changed files with 8 additions and 9 deletions

View File

@ -120,16 +120,15 @@ class Svn
return $output;
}
if (empty($output)) {
$output = $this->process->getErrorOutput();
}
$errorOutput = $this->process->getErrorOutput();
$fullOutput = implode("\n", array($output, $errorOutput));
// the error is not auth-related
if (false === stripos($output, 'Could not authenticate to server:')
&& false === stripos($output, 'authorization failed')
&& false === stripos($output, 'svn: E170001:')
&& false === stripos($output, 'svn: E215004:')) {
throw new \RuntimeException($output);
if (false === stripos($fullOutput, 'Could not authenticate to server:')
&& false === stripos($fullOutput, 'authorization failed')
&& false === stripos($fullOutput, 'svn: E170001:')
&& false === stripos($fullOutput, 'svn: E215004:')) {
throw new \RuntimeException($fullOutput);
}
if (!$this->hasAuth()) {
@ -143,7 +142,7 @@ class Svn
}
throw new \RuntimeException(
'wrong credentials provided ('.$output.')'
'wrong credentials provided ('.$fullOutput.')'
);
}