summaryrefslogtreecommitdiff
path: root/lib/gitlab_projects.rb
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-04-15 13:37:57 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2016-04-19 18:11:41 +0200
commit3739a840521b64d72fe7ed2c30a53bd3ee61b64a (patch)
tree05c51355c3abb19014fdfb1b7d368986ce061c22 /lib/gitlab_projects.rb
parentd5020c5cf8a151ac22af6c4d3caf35a5d04c7bdd (diff)
downloadgitlab-shell-3739a840521b64d72fe7ed2c30a53bd3ee61b64a.tar.gz
Remove branch functionality
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r--lib/gitlab_projects.rb15
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"