Parcourir la source

Added check for SVN WebDAV auth request (http://subversion.apache.org/docs/api/latest/group__svn__dav__error.html#gada0137a4ffc40251d2fce8ba06ca2e14, http://svn.apache.org/repos/asf/subversion/trunk/subversion/bindings/javahl/src/org/tigris/subversion/javahl/ErrorCodes.java).

jspagnoletti il y a 11 ans
Parent
commit
6687743adb
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/Composer/Util/Svn.php

+ 2 - 1
src/Composer/Util/Svn.php

@@ -100,7 +100,8 @@ class Svn
         }
 
         // the error is not auth-related
-        if (false === stripos($output, 'Could not authenticate to server:')) {
+        if (false === stripos($output, 'Could not authenticate to server:')
+            && false === stripos($output, 'svn: E170001:')) {
             throw new \RuntimeException($output);
         }