summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2016-04-15 12:14:17 +0000
committerRémy Coutable <remy@rymai.me>2016-04-15 12:14:17 +0000
commit2ac0050bce040cb8b6b9caf02af6904c17c0900c (patch)
tree606881ada713bfc60b8a862a9d534f0ea5c0d25b
parentc795ef079cde695080ef34444899b77127db6075 (diff)
parent106c443e76fe143ef3d7ef504b404fa4a2667e93 (diff)
downloadgitlab-ce-2ac0050bce040cb8b6b9caf02af6904c17c0900c.tar.gz
Merge branch 'remove-backend-code' into 'master'
Remove unused backend methods Those backend methods are not used anymore since the functionality of them is replaced with rugged. See merge request !3746
-rw-r--r--lib/gitlab/backend/shell.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/gitlab/backend/shell.rb b/lib/gitlab/backend/shell.rb
index b9bb6e76081..0c3dbc744b5 100644
--- a/lib/gitlab/backend/shell.rb
+++ b/lib/gitlab/backend/shell.rb
@@ -92,33 +92,6 @@ module Gitlab
'rm-project', "#{name}.git"])
end
- # Add repository branch from passed ref
- #
- # path - project path with namespace
- # branch_name - new branch name
- # ref - HEAD for new branch
- #
- # Ex.
- # add_branch("gitlab/gitlab-ci", "4-0-stable", "master")
- #
- def add_branch(path, branch_name, ref)
- Gitlab::Utils.system_silent([gitlab_shell_projects_path, 'create-branch',
- "#{path}.git", branch_name, ref])
- end
-
- # Remove repository branch
- #
- # path - project path with namespace
- # branch_name - branch name to remove
- #
- # Ex.
- # rm_branch("gitlab/gitlab-ci", "4-0-stable")
- #
- def rm_branch(path, branch_name)
- Gitlab::Utils.system_silent([gitlab_shell_projects_path, 'rm-branch',
- "#{path}.git", branch_name])
- end
-
# Add repository tag from passed ref
#
# path - project path with namespace