Attempt to make SVN happy with untrusted server certificate
Need this to fetch changes from our svn.b.o which have untrusted issuer of the certificate.
This commit is contained in:
@@ -241,7 +241,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
||||
if ($this->shouldUseSSH()) {
|
||||
switch ($this->getVersionControlSystem()) {
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
||||
$pattern = "SVN_SSH=%s svn --non-interactive {$pattern}";
|
||||
$pattern = "SVN_SSH=%s svn --trust-server-cert --non-interactive {$pattern}";
|
||||
array_unshift(
|
||||
$args,
|
||||
csprintf(
|
||||
@@ -300,6 +300,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
||||
$pattern =
|
||||
"svn ".
|
||||
"--non-interactive ".
|
||||
"--trust-server-cert ".
|
||||
"--no-auth-cache ".
|
||||
"--username %P ".
|
||||
"--password %P ".
|
||||
@@ -316,7 +317,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
||||
} else {
|
||||
switch ($this->getVersionControlSystem()) {
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
||||
$pattern = "svn --non-interactive {$pattern}";
|
||||
$pattern = "svn --non-interactive --trust-server-cert {$pattern}";
|
||||
break;
|
||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
|
||||
$pattern = "HOME=%s git {$pattern}";
|
||||
|
||||
Reference in New Issue
Block a user