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()) {
|
if ($this->shouldUseSSH()) {
|
||||||
switch ($this->getVersionControlSystem()) {
|
switch ($this->getVersionControlSystem()) {
|
||||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
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(
|
array_unshift(
|
||||||
$args,
|
$args,
|
||||||
csprintf(
|
csprintf(
|
||||||
@@ -300,6 +300,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
|||||||
$pattern =
|
$pattern =
|
||||||
"svn ".
|
"svn ".
|
||||||
"--non-interactive ".
|
"--non-interactive ".
|
||||||
|
"--trust-server-cert ".
|
||||||
"--no-auth-cache ".
|
"--no-auth-cache ".
|
||||||
"--username %P ".
|
"--username %P ".
|
||||||
"--password %P ".
|
"--password %P ".
|
||||||
@@ -316,7 +317,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
|
|||||||
} else {
|
} else {
|
||||||
switch ($this->getVersionControlSystem()) {
|
switch ($this->getVersionControlSystem()) {
|
||||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
case PhabricatorRepositoryType::REPOSITORY_TYPE_SVN:
|
||||||
$pattern = "svn --non-interactive {$pattern}";
|
$pattern = "svn --non-interactive --trust-server-cert {$pattern}";
|
||||||
break;
|
break;
|
||||||
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
|
case PhabricatorRepositoryType::REPOSITORY_TYPE_GIT:
|
||||||
$pattern = "HOME=%s git {$pattern}";
|
$pattern = "HOME=%s git {$pattern}";
|
||||||
|
|||||||
Reference in New Issue
Block a user