diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-31 09:25:59 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:14 +0100 |
commit | 447f56036e837fc9a9c2bcaf382d38dc513a9733 (patch) | |
tree | 160d315f5a787e3bf9a703e08793a98d7566ef1f /app/controllers/projects/artifacts_controller.rb | |
parent | e3ef0ac8f44118465cf5831982d2051d0986cda8 (diff) | |
download | gitlab-ce-447f56036e837fc9a9c2bcaf382d38dc513a9733.tar.gz |
Use metadata stored in artifacats metadata file
Diffstat (limited to 'app/controllers/projects/artifacts_controller.rb')
-rw-r--r-- | app/controllers/projects/artifacts_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/artifacts_controller.rb b/app/controllers/projects/artifacts_controller.rb index 8a1ff383134..3a112587f72 100644 --- a/app/controllers/projects/artifacts_controller.rb +++ b/app/controllers/projects/artifacts_controller.rb @@ -18,8 +18,8 @@ class Projects::ArtifactsController < Projects::ApplicationController return render_404 unless build.artifacts? current_path = params[:path] ? "./#{params[:path]}/" : './' - artifacts_metadata = build.artifacts_metadata_for(current_path) - @path = Gitlab::StringPath.new(current_path, artifacts_metadata) + metadata = build.artifacts_metadata_for_path(current_path) + @path = Gitlab::StringPath.new(current_path, metadata) end private |