app/controllers/gitolite_hooks_controller.rb
def find_project_and_repository
    @project = Project.find_by_identifier(params[:projectid])
    if @project.nil?
      render(:text => "#{l(:project_not_found)} #{params[:projectid]}") if @project.nil?
      return
    end
    @repository = @project.repository  # Only repository if redmine < 1.4
    if @repository.nil?
      render_404
    end
  end
# Locate that actual repository that is in use here.
# Notice that an empty "repositoryid" is assumed to refer to the default repo for a project
Locate that actual repository that is in use here.
Notice that an empty "repositoryid" is assumed to refer to the default repo for a project
Locate that actual repository that is in use here . Notice that an empty " repositoryid " is assumed to refer to the default repo for a project
def find_project_and_repository
    @project = Project.find_by_identifier(params[:projectid])
    if @project.nil?
      render(:text => "#{l(:project_not_found)} #{params[:projectid]}") if @project.nil?
      return
    end
    @repository = @project.repository  
    if @repository.nil?
      render_404
    end
  end
def find_project_and_repository @project = Project . find_by_identifier ( params [ :projectid ] ) if @project . nil? render ( :text => "#{l(:project_not_found)} #{params[:projectid]}" ) if @project . nil? return end @repository = @project . repository if @repository . nil? render_404 end end
Locate that actual repository that is in use here.
Locate that actual repository that is in use here .
# Only repository if redmine < 1.4