Remove unused history_path instance variable
This commit is contained in:
parent
cda5e66d7c
commit
702133c0e2
|
@ -54,10 +54,8 @@ class RefsController < ProjectResourceController
|
||||||
@hex_path = Digest::SHA1.hexdigest(params[:path] || "")
|
@hex_path = Digest::SHA1.hexdigest(params[:path] || "")
|
||||||
|
|
||||||
if params[:path]
|
if params[:path]
|
||||||
@history_path = project_tree_path(@project, File.join(@ref, params[:path]))
|
|
||||||
@logs_path = logs_file_project_ref_path(@project, @ref, params[:path])
|
@logs_path = logs_file_project_ref_path(@project, @ref, params[:path])
|
||||||
else
|
else
|
||||||
@history_path = project_tree_path(@project, @ref)
|
|
||||||
@logs_path = logs_tree_project_ref_path(@project, @ref)
|
@logs_path = logs_tree_project_ref_path(@project, @ref)
|
||||||
end
|
end
|
||||||
rescue
|
rescue
|
||||||
|
|
|
@ -11,8 +11,6 @@ class TreeController < ProjectResourceController
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@hex_path = Digest::SHA1.hexdigest(@path)
|
@hex_path = Digest::SHA1.hexdigest(@path)
|
||||||
|
|
||||||
@history_path = project_tree_path(@project, @id)
|
|
||||||
@logs_path = logs_file_project_ref_path(@project, @ref, @path)
|
@logs_path = logs_file_project_ref_path(@project, @ref, @path)
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
|
|
Loading…
Reference in a new issue