Skip to content

Commit

Permalink
Don't push unless we're going to tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Apr 8, 2011
1 parent 88f8fc1 commit 325e1ec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/capistrano/gitflow.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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 # 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` `git fetch`


send "tag_#{stage}" if respond_to?(stage) if respond_to?("tag_#{stage}")
send "tag_#{stage}"


system "git push --tags origin #{local_branch}" system "git push --tags origin #{local_branch}"
if $? != 0 if $? != 0
abort "git push failed" abort "git push failed"
end
end end
end end
end end
Expand Down

0 comments on commit 325e1ec

Please sign in to comment.