summaryrefslogtreecommitdiff
path: root/lib/gitlab_projects.rb
diff options
context:
space:
mode:
authorSean Edge <asedge@gmail.com>2014-07-09 22:16:52 -0400
committerSean Edge <asedge@gmail.com>2014-07-09 22:16:52 -0400
commit5bf1363ea66517561386a6a9b56226ed1fd97a5a (patch)
tree5a12c47de58f6dac126f75121e9767acf3cd3292 /lib/gitlab_projects.rb
parentf959bd4d1f80811bb41a9fd6197a44a9ce641157 (diff)
downloadgitlab-shell-5bf1363ea66517561386a6a9b56226ed1fd97a5a.tar.gz
Adding support+tests for annotated tags.
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r--lib/gitlab_projects.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb
index 4067d13..a6fa1b5 100644
--- a/lib/gitlab_projects.rb
+++ b/lib/gitlab_projects.rb
@@ -67,7 +67,12 @@ class GitlabProjects
def create_tag
tag_name = ARGV.shift
ref = ARGV.shift || "HEAD"
- cmd = %W(git --git-dir=#{full_path} tag -- #{tag_name} #{ref})
+ cmd = %W(git --git-dir=#{full_path} tag)
+ if ARGV.size > 0
+ msg = ARGV.shift
+ cmd += %W(-a -m #{msg})
+ end
+ cmd += %W(-- #{tag_name} #{ref})
system(*cmd)
end