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
'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',
);
$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) {