diff options
author | Rémy Coutable <remy@rymai.me> | 2016-04-18 07:46:15 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-04-18 07:46:15 +0000 |
commit | 27125401f3b8571a79a4f3ba2212afcb9acd214e (patch) | |
tree | 2b8b4c36f854bf982f4bb47c2e2f10665790b151 | |
parent | c615ca4650dfb4b17bf073276024f886e52b74a3 (diff) | |
parent | f5e87590d463b4b3d1bf5cd6b49a9d0d60acd552 (diff) | |
download | gitlab-shell-27125401f3b8571a79a4f3ba2212afcb9acd214e.tar.gz |
Merge branch 'remove-list-remote-tags' into 'master'
Remove unused #list_remote_tags
This function is not used anymore inside GitLab.
See merge request !53
-rw-r--r-- | CHANGELOG | 4 | ||||
-rw-r--r-- | lib/gitlab_projects.rb | 22 |
2 files changed, 4 insertions, 22 deletions
@@ -1,6 +1,10 @@ +v3.0.0 + - Remove list-remote-tags command (Robert Schilling) + v2.7.1 - Add new command to list tags from a remote repo - Add the ability to fetch remote repo with or without tags + v2.7.0 - Add support for ssh AuthorizedKeysCommand query by key 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 |