Skip to content
Browse files

Don't push unless we're going to tag.

  • Loading branch information...
1 parent 88f8fc1 commit 325e1ec8bf2a8e829379a8e93aa0f02ffebf9bbf @technicalpickles committed
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/capistrano/gitflow.rb
View
10 lib/capistrano/gitflow.rb
@@ -75,11 +75,13 @@ def using_git?
# make sure we have any other deployment tags that have been pushed by others so our auto-increment code doesn't create conflicting tags
`git fetch`
- send "tag_#{stage}" if respond_to?(stage)
+ if respond_to?("tag_#{stage}")
+ send "tag_#{stage}"
- system "git push --tags origin #{local_branch}"
- if $? != 0
- abort "git push failed"
+ system "git push --tags origin #{local_branch}"
+ if $? != 0
+ abort "git push failed"
+ end
end
end
end

0 comments on commit 325e1ec

Please sign in to comment.
Something went wrong with that request. Please try again.