Commit d18ec685 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge pull request #193 from cirosantilli/tag-branch-rm-double-dash

Delete tags and branches that start with hyphen
parents 53fed51b fc5edba6
...@@ -65,7 +65,7 @@ class GitlabProjects ...@@ -65,7 +65,7 @@ class GitlabProjects
def rm_branch def rm_branch
branch_name = ARGV.shift 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) system(*cmd)
end end
...@@ -83,7 +83,7 @@ class GitlabProjects ...@@ -83,7 +83,7 @@ class GitlabProjects
def rm_tag def rm_tag
tag_name = ARGV.shift 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) system(*cmd)
end 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