From fc5edba6d6712bfc9c49b3f739d2c4037b27274e Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 31 Oct 2014 11:00:57 +0100 Subject: Delete tags and branches that start with hyphen --- lib/gitlab_projects.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/gitlab_projects.rb') diff --git a/lib/gitlab_projects.rb b/lib/gitlab_projects.rb index 82ae519..0744317 100644 --- a/lib/gitlab_projects.rb +++ b/lib/gitlab_projects.rb @@ -65,7 +65,7 @@ class GitlabProjects def rm_branch branch_name = ARGV.shift - cmd = %W(git --git-dir=#{full_path} branch -D #{branch_name}) + cmd = %W(git --git-dir=#{full_path} branch -D -- #{branch_name}) system(*cmd) end @@ -83,7 +83,7 @@ class GitlabProjects def rm_tag tag_name = ARGV.shift - cmd = %W(git --git-dir=#{full_path} tag -d #{tag_name}) + cmd = %W(git --git-dir=#{full_path} tag -d -- #{tag_name}) system(*cmd) end -- cgit v1.2.1