We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b936e6b commit 5c41628Copy full SHA for 5c41628
src/applications/diffusion/controller/DiffusionDownloadController.php
@@ -125,6 +125,19 @@ public function handleRequest(AphrontRequest $request) {
125
if(!$this->endsWith($localPath, "/")){
126
$localPath = $localPath."/";
127
}
128
+
129
+ $credential_phid = $repo->getCredentialPHID();
130
131
+ if (/*$is_http && !$is_svn &&*/ $credential_phid) {
132
+ $key = PassphrasePasswordKey::loadFromPHID(
133
+ $credential_phid,
134
+ PhabricatorUser::getOmnipotentUser());
135
136
+ $user = $key->getUsernameEnvelope()->openEnvelope();
137
+ $pass = $key->getPasswordEnvelope()->openEnvelope();
138
+ $localPath = "--no-auth-cache --username ".rawurlencode($user).' --password '.rawurlencode($pass)." $localPath";
139
+ }
140
141
142
143
0 commit comments