summaryrefslogtreecommitdiff
path: root/lib/gitlab_projects.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r--lib/gitlab_projects.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb
index 9276344..6a6c36e 100644
--- a/lib/gitlab_projects.rb
+++ b/lib/gitlab_projects.rb
@@ -64,7 +64,6 @@ class GitlabProjects
when 'update-head'; update_head
when 'push-branches'; push_branches
when 'delete-remote-branches'; delete_remote_branches
- when 'list-remote-tags'; list_remote_tags
when 'gc'; gc
else
$logger.warn "Attempt to execute invalid gitlab-projects command #{@command.inspect}."
@@ -75,27 +74,6 @@ class GitlabProjects
protected
- def list_remote_tags
- remote_name = ARGV.shift
-
- tag_list, exit_code, error = nil
- cmd = %W(git --git-dir=#{full_path} ls-remote --tags #{remote_name})
-
- Open3.popen3(*cmd) do |stdin, stdout, stderr, wait_thr|
- tag_list = stdout.read
- error = stderr.read
- exit_code = wait_thr.value.exitstatus
- end
-
- if exit_code.zero?
- puts tag_list
- true
- else
- puts error
- false
- end
- end
-
def push_branches
remote_name = ARGV.shift