lib/rgitflow/tasks/feature/finish.rb in rgitflow-0.1.0.pre.alpha.pre.12 vs lib/rgitflow/tasks/feature/finish.rb in rgitflow-0.1.0.pre.alpha.pre.13
- old
+ new
@@ -22,10 +22,12 @@
@git.branch(RGitFlow::Config.options[:develop]).checkout
@git.merge branch
@git.push
- @git.push('origin', branch, {:delete => true})
+ if @git.is_remote_branch? branch
+ @git.push('origin', branch, {:delete => true})
+ end
@git.branch(branch).delete
status "Finished feature branch #{branch}!"
end
\ No newline at end of file