mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Support browsing '.' and default to it
Test Plan: Ran 'arc browse', 'arc browse .', 'arc browse main.py'. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley CC: Korvin, epriestley, aran, avivey Differential Revision: https://secure.phabricator.com/D8174
This commit is contained in:
parent
c3fe03db08
commit
52d3cd1b4e
1 changed files with 6 additions and 4 deletions
|
@ -50,7 +50,7 @@ EOTEXT
|
|||
'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 @@ EOTEXT
|
|||
$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) {
|
||||
|
|
Loading…
Reference in a new issue