diff options
Diffstat (limited to 'app/controllers/projects/find_file_controller.rb')
-rw-r--r-- | app/controllers/projects/find_file_controller.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/projects/find_file_controller.rb b/app/controllers/projects/find_file_controller.rb index b5099d555ae..1777497ee52 100644 --- a/app/controllers/projects/find_file_controller.rb +++ b/app/controllers/projects/find_file_controller.rb @@ -14,7 +14,9 @@ class Projects::FindFileController < Projects::ApplicationController urgency :low, [:show, :list] def show - return render_404 unless @repository.commit(@ref) + return render_404 unless @commit + + @ref_type = ref_type respond_to do |format| format.html @@ -22,7 +24,7 @@ class Projects::FindFileController < Projects::ApplicationController end def list - file_paths = @repo.ls_files(@ref) + file_paths = @repo.ls_files(@commit.id) respond_to do |format| format.json { render json: file_paths } |