lib/git/branch/stray.rb in git-branch--stray-1.0.0 vs lib/git/branch/stray.rb in git-branch--stray-1.1.0
- old
+ new
@@ -69,9 +69,10 @@
def delete_stray_branches
stray_branches.each_consented('Delete stray branch "%s"') do |stray|
system("git branch -d #{stray}")
next if $CHILD_STATUS.success?
+
Array(stray).each_consented('Delete unmerged branch "%s"') do |unmerged|
system("git branch -D #{unmerged}")
end
end
end