We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c559eb4 + 0a03b7c commit 083fd3dCopy full SHA for 083fd3d
git-prune-remote-branch
@@ -10,6 +10,8 @@ opts.parse!
10
next if branch =~ %r![^/]+/master!
11
next if branch =~ %r![^/]+/develop!
12
13
+ branch.gsub!(%r!\(!, '\(')
14
+ branch.gsub!(%r!\)!, '\)')
15
if `git branch --contains #{branch}`.each_line.any? { |included| included.strip.chomp =~ /\A[* ]*(develop|master)\z/ }
16
ref = branch.sub(%r!^([^/]+)/!, '')
17
command = "git push --delete #{$1} #{ref}"
0 commit comments