diff options
author | Sean Edge <asedge@gmail.com> | 2014-07-09 22:16:52 -0400 |
---|---|---|
committer | Sean Edge <asedge@gmail.com> | 2014-07-09 22:16:52 -0400 |
commit | 5bf1363ea66517561386a6a9b56226ed1fd97a5a (patch) | |
tree | 5a12c47de58f6dac126f75121e9767acf3cd3292 /lib/gitlab_projects.rb | |
parent | f959bd4d1f80811bb41a9fd6197a44a9ce641157 (diff) | |
download | gitlab-shell-5bf1363ea66517561386a6a9b56226ed1fd97a5a.tar.gz |
Adding support+tests for annotated tags.
Diffstat (limited to 'lib/gitlab_projects.rb')
-rw-r--r-- | lib/gitlab_projects.rb | 7 |
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 |