Let diffusion.readmequery accept a commit
Summary: Ref T2683. This should probably just be `diffusion.filecontentquery` but keep things as they are for now. This method uses a commit, so accept one. Soon, this will save a bit of work. Test Plan: Viewed readmes in main and browse views. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T2683 Differential Revision: https://secure.phabricator.com/D9093
This commit is contained in:
@@ -70,6 +70,7 @@ final class DiffusionBrowseDirectoryController
|
||||
'diffusion.readmequery',
|
||||
array(
|
||||
'paths' => $results->getPathDicts(),
|
||||
'commit' => $drequest->getStableCommit(),
|
||||
));
|
||||
if ($readme) {
|
||||
$box = new PHUIBoxView();
|
||||
|
||||
@@ -83,7 +83,8 @@ final class DiffusionRepositoryController extends DiffusionController {
|
||||
$readme = $this->callConduitWithDiffusionRequest(
|
||||
'diffusion.readmequery',
|
||||
array(
|
||||
'paths' => $browse_results->getPathDicts()
|
||||
'paths' => $browse_results->getPathDicts(),
|
||||
'commit' => $drequest->getStableCommit(),
|
||||
));
|
||||
} else {
|
||||
$readme = null;
|
||||
|
||||
Reference in New Issue
Block a user