Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18637089
D14250.id34405.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14250.id34405.diff
View Options
diff --git a/src/applications/repository/management/PhabricatorRepositoryManagementEditWorkflow.php b/src/applications/repository/management/PhabricatorRepositoryManagementEditWorkflow.php
--- a/src/applications/repository/management/PhabricatorRepositoryManagementEditWorkflow.php
+++ b/src/applications/repository/management/PhabricatorRepositoryManagementEditWorkflow.php
@@ -24,6 +24,16 @@
'param' => 'path',
'help' => pht('Edit the local path.'),
),
+ array(
+ 'name' => 'serve-http',
+ 'param' => 'string',
+ 'help' => pht('Edit the http serving policy.'),
+ ),
+ array(
+ 'name' => 'serve-ssh',
+ 'param' => 'string',
+ 'help' => pht('Edit the ssh serving policy.'),
+ ),
));
}
@@ -68,12 +78,26 @@
$xactions = array();
$type_local_path = PhabricatorRepositoryTransaction::TYPE_LOCAL_PATH;
+ $type_protocol_http =
+ PhabricatorRepositoryTransaction::TYPE_PROTOCOL_HTTP;
+ $type_protocol_ssh = PhabricatorRepositoryTransaction::TYPE_PROTOCOL_SSH;
if ($args->getArg('local-path')) {
$xactions[] = id(new PhabricatorRepositoryTransaction())
->setTransactionType($type_local_path)
->setNewValue($args->getArg('local-path'));
}
+ if ($args->getArg('serve-http')) {
+ $xactions[] = id(new PhabricatorRepositoryTransaction())
+ ->setTransactionType($type_protocol_http)
+ ->setNewValue($args->getArg('serve-http'));
+ }
+ if ($args->getArg('serve-ssh')) {
+ $xactions[] = id(new PhabricatorRepositoryTransaction())
+ ->setTransactionType($type_protocol_ssh)
+ ->setNewValue($args->getArg('serve-ssh'));
+ }
+
if (!$xactions) {
throw new PhutilArgumentUsageException(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sep 18 2025, 6:23 AM (6 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
10540526
Default Alt Text
D14250.id34405.diff (1 KB)
Attached To
Mode
D14250: Allow editing hosting policies via command line
Attached
Detach File
Event Timeline
Log In to Comment