diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-19 16:35:13 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-19 16:35:13 +0000 |
commit | 4a8db75d9de6ff5ce56be6c36e957e89971a2d42 (patch) | |
tree | 05c51355c3abb19014fdfb1b7d368986ce061c22 /lib | |
parent | d5020c5cf8a151ac22af6c4d3caf35a5d04c7bdd (diff) | |
parent | 3739a840521b64d72fe7ed2c30a53bd3ee61b64a (diff) | |
download | gitlab-shell-4a8db75d9de6ff5ce56be6c36e957e89971a2d42.tar.gz |
Merge branch 'remove-branch-functionality' into 'master'
Remove branch functionality
The branch functionality is already replaced with rugged inside GitLab
See merge request !52
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_projects.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index d1a402a..bc98e09 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -50,8 +50,6 @@ class GitlabProjects def exec case @command - when 'create-branch'; create_branch - when 'rm-branch'; rm_branch when 'create-tag'; create_tag when 'add-project'; add_project when 'list-projects'; puts list_projects @@ -114,19 +112,6 @@ class GitlabProjects end end - def create_branch - branch_name = ARGV.shift - ref = ARGV.shift || "HEAD" - cmd = %W(git --git-dir=#{full_path} branch -- #{branch_name} #{ref}) - system(*cmd) - end - - def rm_branch - branch_name = ARGV.shift - cmd = %W(git --git-dir=#{full_path} branch -D -- #{branch_name}) - system(*cmd) - end - def create_tag tag_name = ARGV.shift ref = ARGV.shift || "HEAD" |