Commit fc5edba6 authored by Ciro Santilli's avatar Ciro Santilli

Delete tags and branches that start with hyphen

parent 00b3d2cb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment