lib/dev_flow/commands/close.rb in dev_flow-0.2.3 vs lib/dev_flow/commands/close.rb in dev_flow-0.2.4
- old
+ new
@@ -61,9 +61,14 @@
puts "You may want to review and test the program again and then switch back to develop trunk."
end
info "Delete closed branch #{current_task.branch_name}"
`git branch -d #{current_task.branch_name}`
+
+ if @config["git_remote"]
+ info "Delete closed branch remotely"
+ `git push #{@config["git_remote"]} :#{current_task.branch_name}`
+ end
end
end # class
end