summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-18 15:46:47 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-11-18 15:46:47 +0200
commitd18ec6858fc3c19e95e6c6421429c9c7a496b4a1 (patch)
tree87dd5763e3130dac3d214d2029371df7d990d9de /lib
parent53fed51b87305cd89e29ecfc52ed016cb84f3106 (diff)
parentfc5edba6d6712bfc9c49b3f739d2c4037b27274e (diff)
downloadgitlab-shell-d18ec6858fc3c19e95e6c6421429c9c7a496b4a1.tar.gz
Merge pull request #193 from cirosantilli/tag-branch-rm-double-dash
Delete tags and branches that start with hyphen
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab_projects.rb4
1 files changed, 2 insertions, 2 deletions
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