From a6366be5a68b56f5268ebbb4618fbe9a0270d6e8 Mon Sep 17 00:00:00 2001 From: Beau Simensen Date: Thu, 22 Mar 2012 14:58:52 -0700 Subject: [PATCH] Handle auth challenge in SvnDriver supports. --- src/Composer/Repository/Vcs/SvnDriver.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/Vcs/SvnDriver.php b/src/Composer/Repository/Vcs/SvnDriver.php index 61a9573fa..c11e417ab 100644 --- a/src/Composer/Repository/Vcs/SvnDriver.php +++ b/src/Composer/Repository/Vcs/SvnDriver.php @@ -262,7 +262,16 @@ class SvnDriver extends VcsDriver $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; } /**