stable

Clone or download

Read-only

Git repository browsing routed by FrontRouter

As a nice consequence it reduce the scope of the git GOD object controller. Take also the opportunity to force usage of original, non friendly, git urls with a redirect. The complete removal of the old URL scheme will be done in a dedicated commit to avoid a fat commit. Also fix pre-commit hooks so they deal with renamed files. Renamed used to crash pre-commit hooks because more than one commit was returned. Part of request #11450 FrontRouter for git plugin Change-Id: Iaab61647a1ebeb44c617d5fd1f9d8ec22a1748cf

Modified Files

Name
M plugins/git/include/Git.class.php +0 −85 Go to diff View file
M plugins/git/include/Git/AdminRouter.class.php +2 −0 Go to diff View file
M plugins/git/include/Git/GitPluginDefaultController.php +1 −7 Go to diff View file
A plugins/git/include/Git/GitRepositoryBrowserController.php +171 −0 Go to diff View file
M plugins/git/include/Git/HTTP/HTTPController.php +2 −0 Go to diff View file
M plugins/git/include/Git/URL.class.php +14 −14 Go to diff View file
A plugins/git/include/GitLegacyURLRedirectController.php +70 −0 Go to diff View file
M plugins/git/include/GitViews.class.php +2 −54 Go to diff View file
A plugins/git/include/GitViews/GitViewHeader.php +93 −0 Go to diff View file
M plugins/git/include/GitViews/ShowRepo.class.php +18 −15 Go to diff View file
M plugins/git/include/GitViews/ShowRepo/Content.class.php +11 −7 Go to diff View file
M plugins/git/include/autoload.php +5 −2 Go to diff View file
M plugins/git/include/gitPlugin.class.php +25 −3 Go to diff View file
M plugins/git/phpunit/GitRoutingTest.php +51 −12 Go to diff View file
M plugins/git/tests/Git/URLTest.php +0 −132 Go to diff View file
M src/common/include/Response.class.php +6 −0 Go to diff View file
M tools/utils/githooks/pre-commit-02-phpcs +1 −1 Go to diff View file
M tools/utils/githooks/pre-commit-03-scss-lint +1 −1 Go to diff View file
M tools/utils/githooks/pre-commit-04-eslint +1 −1 Go to diff View file