Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-shell
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-shell
Commits
0b56b0cd
Commit
0b56b0cd
authored
Apr 16, 2016
by
Robert Schilling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove rm-tag command
parent
27125401
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1 addition
and
30 deletions
+1
-30
CHANGELOG
CHANGELOG
+1
-0
README.md
README.md
+0
-4
lib/gitlab_projects.rb
lib/gitlab_projects.rb
+0
-7
spec/gitlab_projects_spec.rb
spec/gitlab_projects_spec.rb
+0
-19
No files found.
CHANGELOG
View file @
0b56b0cd
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
...
...
README.md
View file @
0b56b0cd
...
@@ -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
...
...
lib/gitlab_projects.rb
View file @
0b56b0cd
...
@@ -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
)
...
...
spec/gitlab_projects_spec.rb
View file @
0b56b0cd
...
@@ -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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment