Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13957719
D8174.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
919 B
Referenced Files
None
Subscribers
None
D8174.diff
View Options
Index: src/workflow/ArcanistBrowseWorkflow.php
===================================================================
--- src/workflow/ArcanistBrowseWorkflow.php
+++ src/workflow/ArcanistBrowseWorkflow.php
@@ -50,7 +50,7 @@
'branch' => array(
'param' => 'branch_name',
'help' =>
- "Select branch name to view (On server). Defaults to 'master'."
+ "Select branch name to view (on server). Defaults to 'master'."
),
'*' => 'paths',
);
@@ -82,9 +82,11 @@
$path = preg_replace('/:([0-9]+)$/', '$\1', $path);
$full_path = Filesystem::resolvePath($path);
- $paths[$key] = Filesystem::readablePath(
- $full_path,
- $project_root);
+ if ($full_path == $project_root) {
+ $paths[$key] = '';
+ } else {
+ $paths[$key] = Filesystem::readablePath($full_path, $project_root);
+ }
}
if (!$paths) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 15 2024, 10:55 AM (4 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6712582
Default Alt Text
D8174.diff (919 B)
Attached To
Mode
D8174: Support browsing '.' and default to it
Attached
Detach File
Event Timeline
Log In to Comment