summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-01 17:46:37 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 15:46:14 +0100
commit09194eebff2154d22ee6ae5a63ff5dea03cbfe73 (patch)
tree9c0325d304cd7ef1d812afc562cd7e708409b3f6
parentd9561118e8a2ab5f2a5543e2c8ef3bfb6a3505c9 (diff)
downloadgitlab-ce-09194eebff2154d22ee6ae5a63ff5dea03cbfe73.tar.gz
successfully adds the new version with the updated name on the projects repo
-rw-r--r--app/controllers/projects/blob_controller.rb1
-rw-r--r--app/services/files/base_service.rb2
2 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb
index 00549265e9e..8fc24668b42 100644
--- a/app/controllers/projects/blob_controller.rb
+++ b/app/controllers/projects/blob_controller.rb
@@ -52,6 +52,7 @@ class Projects::BlobController < Projects::ApplicationController
@previous_path = @path
@path = params[:file_name]
end
+
namespace_project_blob_path(@project.namespace, @project, File.join(@target_branch, @path))
end
diff --git a/app/services/files/base_service.rb b/app/services/files/base_service.rb
index c8e66555c82..7719c1819ec 100644
--- a/app/services/files/base_service.rb
+++ b/app/services/files/base_service.rb
@@ -16,6 +16,8 @@ module Files
params[:file_content]
end
+ puts @file_path
+
# Validate parameters
validate