Commit 0b56b0cd authored by Robert Schilling's avatar Robert Schilling

Remove rm-tag command

parent 27125401
v3.0.0 v3.0.0
- Remove list-remote-tags command (Robert Schilling) - Remove list-remote-tags command (Robert Schilling)
- Remove rm-tag command (Robert Schilling)
v2.7.1 v2.7.1
- Add new command to list tags from a remote repo - Add new command to list tags from a remote repo
......
...@@ -117,10 +117,6 @@ Create tag (lightweight & annotated): ...@@ -117,10 +117,6 @@ Create tag (lightweight & annotated):
./bin/gitlab-projects create-tag gitlab/gitlab-ci.git v3.0.0 3-0-stable ./bin/gitlab-projects create-tag gitlab/gitlab-ci.git v3.0.0 3-0-stable
./bin/gitlab-projects create-tag gitlab/gitlab-ci.git v3.0.0 3-0-stable 'annotated message goes here' ./bin/gitlab-projects create-tag gitlab/gitlab-ci.git v3.0.0 3-0-stable 'annotated message goes here'
Remove tag:
./bin/gitlab-projects rm-tag gitlab/gitlab-ci.git v3.0.0
Gc repo: Gc repo:
./bin/gitlab-projects gc gitlab/gitlab-ci.git ./bin/gitlab-projects gc gitlab/gitlab-ci.git
......
...@@ -53,7 +53,6 @@ class GitlabProjects ...@@ -53,7 +53,6 @@ class GitlabProjects
when 'create-branch'; create_branch when 'create-branch'; create_branch
when 'rm-branch'; rm_branch when 'rm-branch'; rm_branch
when 'create-tag'; create_tag when 'create-tag'; create_tag
when 'rm-tag'; rm_tag
when 'add-project'; add_project when 'add-project'; add_project
when 'list-projects'; puts list_projects when 'list-projects'; puts list_projects
when 'rm-project'; rm_project when 'rm-project'; rm_project
...@@ -140,12 +139,6 @@ class GitlabProjects ...@@ -140,12 +139,6 @@ class GitlabProjects
system(*cmd) system(*cmd)
end end
def rm_tag
tag_name = ARGV.shift
cmd = %W(git --git-dir=#{full_path} tag -d -- #{tag_name})
system(*cmd)
end
def add_project def add_project
$logger.info "Adding project #{@project_name} at <#{full_path}>." $logger.info "Adding project #{@project_name} at <#{full_path}>."
FileUtils.mkdir_p(full_path, mode: 0770) FileUtils.mkdir_p(full_path, mode: 0770)
......
...@@ -139,25 +139,6 @@ describe GitlabProjects do ...@@ -139,25 +139,6 @@ describe GitlabProjects do
end end
end end
describe :rm_tag do
let(:gl_projects_create) {
build_gitlab_projects('import-project', repo_name, 'https://github.com/randx/six.git')
}
let(:gl_projects_create_tag) {
build_gitlab_projects('create-tag', repo_name, 'test_tag', 'master')
}
let(:gl_projects) { build_gitlab_projects('rm-tag', repo_name, 'test_tag') }
it "should remove a branch" do
gl_projects_create.exec
gl_projects_create_tag.exec
branch_ref = capture_in_tmp_repo(%W(git rev-parse test_tag))
gl_projects.exec
branch_del = capture_in_tmp_repo(%W(git rev-parse test_tag))
branch_del.should_not == branch_ref
end
end
describe :add_project do describe :add_project do
let(:gl_projects) { build_gitlab_projects('add-project', repo_name) } let(:gl_projects) { build_gitlab_projects('add-project', repo_name) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment