diff --git a/src/applications/diffusion/conduit/ConduitAPI_diffusion_readmequery_Method.php b/src/applications/diffusion/conduit/ConduitAPI_diffusion_readmequery_Method.php index 7c2b29877b..93d61a4f0e 100644 --- a/src/applications/diffusion/conduit/ConduitAPI_diffusion_readmequery_Method.php +++ b/src/applications/diffusion/conduit/ConduitAPI_diffusion_readmequery_Method.php @@ -1,8 +1,5 @@ 'required array ', + 'commit' => 'optional string', ); } diff --git a/src/applications/diffusion/controller/DiffusionBrowseDirectoryController.php b/src/applications/diffusion/controller/DiffusionBrowseDirectoryController.php index 62a37d7861..85e3545b4f 100644 --- a/src/applications/diffusion/controller/DiffusionBrowseDirectoryController.php +++ b/src/applications/diffusion/controller/DiffusionBrowseDirectoryController.php @@ -70,6 +70,7 @@ final class DiffusionBrowseDirectoryController 'diffusion.readmequery', array( 'paths' => $results->getPathDicts(), + 'commit' => $drequest->getStableCommit(), )); if ($readme) { $box = new PHUIBoxView(); diff --git a/src/applications/diffusion/controller/DiffusionRepositoryController.php b/src/applications/diffusion/controller/DiffusionRepositoryController.php index 0dd6379910..7a2f6fc7a6 100644 --- a/src/applications/diffusion/controller/DiffusionRepositoryController.php +++ b/src/applications/diffusion/controller/DiffusionRepositoryController.php @@ -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;