|
|
|
@ -206,8 +206,15 @@ class RepositoriesController < ApplicationController
|
|
|
|
|
@repository.committer_ids = params[:committers].values.inject({}) {|h, c| h[c.first] = c.last; h}
|
|
|
|
|
flash[:notice] = l(:notice_successful_update)
|
|
|
|
|
redirect_to settings_project_path(@project, :tab => 'repositories')
|
|
|
|
|
elsif request.get?
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html{
|
|
|
|
|
render :layout => "project_base"
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def destroy
|
|
|
|
@ -414,7 +421,10 @@ class RepositoriesController < ApplicationController
|
|
|
|
|
Digest::MD5.hexdigest("#{@path}-#{@rev}-#{@rev_to}-#{@diff_type}-#{current_language}")
|
|
|
|
|
unless read_fragment(@cache_key)
|
|
|
|
|
@diff = @repository.diff(@path, @rev, @rev_to)
|
|
|
|
|
show_error_not_found unless @diff
|
|
|
|
|
unless @diff
|
|
|
|
|
show_error_not_found
|
|
|
|
|
return
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@changeset = @repository.find_changeset_by_name(@rev)
|
|
|
|
|