Page MenuHomePhabricator

D9842.diff
No OneTemporary

D9842.diff

diff --git a/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php b/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php
--- a/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php
+++ b/src/applications/repository/conduit/ConduitAPI_repository_create_Method.php
@@ -25,7 +25,7 @@
'description' => 'optional string',
'encoding' => 'optional string',
'tracking' => 'optional bool',
- 'uri' => 'optional string',
+ 'uri' => 'required string',
'credentialPHID' => 'optional string',
'svnSubpath' => 'optional string',
'branchFilter' => 'optional list<string>',
@@ -82,6 +82,12 @@
}
$repository->setCallsign($callsign);
+ $local_path = PhabricatorEnv::getEnvConfig(
+ 'repository.default-local-path');
+
+ $local_path = rtrim($local_path, '/');
+ $local_path = $local_path.'/'.$callsign.'/';
+
$vcs = $request->getValue('vcs');
$map = array(
@@ -104,6 +110,7 @@
'description' => $request->getValue('description'),
'tracking-enabled' => (bool)$request->getValue('tracking', true),
'remote-uri' => $remote_uri,
+ 'local-path' => $local_path,
'branch-filter' => array_fill_keys(
$request->getValue('branchFilter', array()),
true),

File Metadata

Mime Type
text/plain
Expires
Wed, Dec 25, 8:29 AM (9 h, 44 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6925642
Default Alt Text
D9842.diff (1 KB)

Event Timeline