Page MenuHomePhabricator

D9498.diff
No OneTemporary

D9498.diff

diff --git a/src/applications/owners/controller/PhabricatorOwnersEditController.php b/src/applications/owners/controller/PhabricatorOwnersEditController.php
--- a/src/applications/owners/controller/PhabricatorOwnersEditController.php
+++ b/src/applications/owners/controller/PhabricatorOwnersEditController.php
@@ -138,7 +138,18 @@
$default_paths = array();
foreach ($repos as $repo) {
- $default_path = $repo->getDetail('default-owners-path');
+ $subpath = $repo->getDetail('svn-subpath');
+ $default_owners_path = $repo->getDetail('default-owners-path');
+ if ($subpath) {
+ $default_path = '/' . ltrim($subpath, '/');
+ }
+ if ($default_owners_path) {
+ if ($subpath) {
+ $default_path .= ltrim($default_owners_path, '/');
+ } else {
+ $default_path = $default_owners_path;
+ }
+ }
if ($default_path) {
$default_paths[$repo->getPHID()] = $default_path;
}

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 4, 3:24 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6732316
Default Alt Text
D9498.diff (976 B)

Event Timeline