diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-15 09:43:17 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-15 09:43:17 +0300 |
commit | 59bffe6b1ed6ed425723cf6d98259bdee9f75f0a (patch) | |
tree | 440fb68731a5ffc145bfc150b85b1f3dfdf3c82d /lib/gitlab_projects.rb | |
parent | f959bd4d1f80811bb41a9fd6197a44a9ce641157 (diff) | |
parent | df90f59c25d9d42181af31eb7c9f4219ab7a36ba (diff) | |
download | gitlab-shell-59bffe6b1ed6ed425723cf6d98259bdee9f75f0a.tar.gz |
Merge pull request #162 from asedge/annotated_tags
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 |