1
0
Fork 0

Merge branch 'svn-auth-reloaded' of github.com:till/composer into svn-auth-reloaded

pull/410/head
till 2012-03-23 15:51:39 +01:00
commit 2af145338b
1 changed files with 10 additions and 1 deletions

View File

@ -262,7 +262,16 @@ class SvnDriver extends VcsDriver
$ignoredOutput $ignoredOutput
); );
return $exit === 0; if ($exit === 0) {
// This is definitely a Subversion repository.
return true;
}
if (preg_match('/authorization failed/i', $processExecutor->getErrorOutput())) {
// This is likely a remote Subversion repository that requires
// authentication. We will handle actual authentication later.
return true;
}
return false;
} }
/** /**