Fix all remaining weird Diffusion request processing
Summary: Ref T4245. This is the last of it, and covers the clone/push stuff. Test Plan: - Cloned git. - Pushed git. - Cloned mercurial. - Pushed mercurial. - Visited a `blah.git` URL in my browser just because; got redirected to a human-facing UI. Reviewers: chad Reviewed By: chad Maniphest Tasks: T4245 Differential Revision: https://secure.phabricator.com/D14949
This commit is contained in:
@@ -6,8 +6,9 @@ abstract class DiffusionRepositoryEditController
|
||||
protected function buildApplicationCrumbs($is_main = false) {
|
||||
$crumbs = parent::buildApplicationCrumbs();
|
||||
|
||||
if ($this->diffusionRequest) {
|
||||
$repository = $this->getDiffusionRequest()->getRepository();
|
||||
if ($this->hasDiffusionRequest()) {
|
||||
$drequest = $this->getDiffusionRequest();
|
||||
$repository = $drequest->getRepository();
|
||||
$repo_uri = $repository->getURI();
|
||||
$edit_uri = $this->getRepositoryControllerURI($repository, 'edit/');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user