summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-01 16:32:56 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-06 14:15:49 +0100
commit75e961dc7f51c169c65a9b525a111c4d0713f9a7 (patch)
tree682e0a82d7b00f491111476bc43d6f70b46efb32 /app
parentef0f4950af1eb994eaa3ed6f2bfea37e6eff7ce1 (diff)
downloadgitlab-ce-75e961dc7f51c169c65a9b525a111c4d0713f9a7.tar.gz
implements the form for renaming the new filename on the file edit page
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/blob_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb
index 2bd86a1f126..e2ddda1474b 100644
--- a/app/controllers/projects/blob_controller.rb
+++ b/app/controllers/projects/blob_controller.rb
@@ -43,8 +43,8 @@ class Projects::BlobController < Projects::ApplicationController
diffs_namespace_project_merge_request_path(from_merge_request.target_project.namespace, from_merge_request.target_project, from_merge_request) +
"#file-path-#{hexdigest(@path)}"
else
- unless params[:file_name] == @path
- previous_path = @path
+ unless params[:file_name].empty?
+ @previous_path = @path
@path = params[:file_name]
end