Page MenuHomePhabricator

D8174.diff
No OneTemporary

D8174.diff

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

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)

Event Timeline