Skip to content

Only redirect project path.git to path on #show

Created by: cirosantilli

  • POST path.git should not be allowed
  • path.git/some/path currently already redirects to Grack

Makes the all project controllers faster by removing that check from all actions to only project#show.

Also added some tests.

This works because before hooks on base classes are run BEFORE those of parents, so the redirect is done before the :project before filter of ApplicationController.

Merge request reports

Loading