summaryrefslogtreecommitdiff
path: root/app/controllers/projects/blob_controller.rb
diff options
context:
space:
mode:
authorJacopo <beschi.jacopo@gmail.com>2017-03-14 07:29:49 +0100
committerjacopo-beschi-intersail <jacopo.beschi@intersail.it>2017-03-21 11:51:53 +0100
commit7b04b63eeb8e3d6730acec3045a54f95968b3dac (patch)
treeee8214a00a882236d7bb2756553354fc024d9c59 /app/controllers/projects/blob_controller.rb
parent0eff4f14ccae7d979e6fa20f0bb875e4591351e8 (diff)
downloadgitlab-ce-7b04b63eeb8e3d6730acec3045a54f95968b3dac.tar.gz
New directory from interface on existing branch
The user can create a new directory on a different branch than the source branch when the branch already exists.
Diffstat (limited to 'app/controllers/projects/blob_controller.rb')
-rw-r--r--app/controllers/projects/blob_controller.rb5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb
index 52fc67d162c..80a95c6158b 100644
--- a/app/controllers/projects/blob_controller.rb
+++ b/app/controllers/projects/blob_controller.rb
@@ -89,11 +89,6 @@ class Projects::BlobController < Projects::ApplicationController
private
- def update_ref
- branch_exists = @repository.find_branch(@target_branch)
- @ref = @target_branch if branch_exists
- end
-
def blob
@blob ||= Blob.decorate(@repository.blob_at(@commit.id, @path))