Something went wrong. Try again.
@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
Something went wrong. Try again.
670 B · 17 lines
PHP
at commit e0faa667
123456789101112131415161718<?php
final class DiffusionRepositoryDefaultController extends DiffusionController {
protected function processDiffusionRequest(AphrontRequest $request) { // NOTE: This controller is just here to make sure we call // willBeginExecution() on any /diffusion/X/ URI, so we can intercept // `git`, `hg` and `svn` HTTP protocol requests.
// If we made it here, it's probably because the user copy-pasted a // clone URI with "/anything.git" at the end into their web browser. // Send them to the canonical repository URI.
return id(new AphrontRedirectResponse()) ->setURI($this->getDiffusionRequest()->getRepository()->getURI()); }}