Skip to content
Snippets Groups Projects
Commit 0b56b0cd authored by Robert Schilling's avatar Robert Schilling
Browse files

Remove rm-tag command

parent 27125401
No related branches found
No related tags found
1 merge request!54Remove rm-tag command
v3.0.0
- Remove list-remote-tags command (Robert Schilling)
- Remove rm-tag command (Robert Schilling)
 
v2.7.1
- Add new command to list tags from a remote repo
Loading
Loading
Loading
Loading
@@ -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 'annotated message goes here'
 
Remove tag:
./bin/gitlab-projects rm-tag gitlab/gitlab-ci.git v3.0.0
Gc repo:
 
./bin/gitlab-projects gc gitlab/gitlab-ci.git
Loading
Loading
Loading
Loading
@@ -53,7 +53,6 @@ class GitlabProjects
when 'create-branch'; create_branch
when 'rm-branch'; rm_branch
when 'create-tag'; create_tag
when 'rm-tag'; rm_tag
when 'add-project'; add_project
when 'list-projects'; puts list_projects
when 'rm-project'; rm_project
Loading
Loading
@@ -140,12 +139,6 @@ class GitlabProjects
system(*cmd)
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
$logger.info "Adding project #{@project_name} at <#{full_path}>."
FileUtils.mkdir_p(full_path, mode: 0770)
Loading
Loading
Loading
Loading
@@ -139,25 +139,6 @@ describe GitlabProjects do
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
let(:gl_projects) { build_gitlab_projects('add-project', repo_name) }
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment