summaryrefslogtreecommitdiff
path: root/lib/gitlab/shell.rb
diff options
context:
space:
mode:
authorAlejandro Rodríguez <alejorro70@gmail.com>2017-12-18 23:27:21 -0300
committerAlejandro Rodríguez <alejorro70@gmail.com>2018-01-03 23:06:34 -0300
commit43308bd826a88f92bbc92320e0591faf92acd66f (patch)
tree63e5201178fa3daf6ac54b0392ace8720ae44a96 /lib/gitlab/shell.rb
parentfb583c4b1839af16c50e27105a300695aa50bcad (diff)
downloadgitlab-ce-43308bd826a88f92bbc92320e0591faf92acd66f.tar.gz
Move push_remote_branches from Gitlab::Shell to Gitlab::Git::Repository
Diffstat (limited to 'lib/gitlab/shell.rb')
-rw-r--r--lib/gitlab/shell.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/gitlab/shell.rb b/lib/gitlab/shell.rb
index 9cdd3d22f18..8dbe8ba5df0 100644
--- a/lib/gitlab/shell.rb
+++ b/lib/gitlab/shell.rb
@@ -306,27 +306,6 @@ module Gitlab
end
end
- # Push branch to remote repository
- #
- # storage - project's storage path
- # project_name - project's disk path
- # remote_name - remote name
- # branch_names - remote branch names to push
- # forced - should we use --force flag
- #
- # Ex.
- # push_remote_branches('/path/to/storage', 'gitlab-org/gitlab-test' 'upstream', ['feature'])
- #
- def push_remote_branches(storage, project_name, remote_name, branch_names, forced: true)
- cmd = gitlab_projects(storage, "#{project_name}.git")
-
- success = cmd.push_branches(remote_name, git_timeout, forced, branch_names)
-
- raise Error, cmd.output unless success
-
- success
- end
-
# Delete branch from remote repository
#
# storage - project's storage path