Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

This needs to actually force push the tag or you can end up in a bad …

…state.
  • Loading branch information...
commit 09b35efcc4f36d21cfa9b71c71bd7eb0ebd8ddf2 1 parent ffa8baf
@relistan relistan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/capistrano/deploy_tags.rb
View
2  lib/capistrano/deploy_tags.rb
@@ -64,7 +64,7 @@ def self.load_into(configuration)
cdt.safe_run "git", "tag", "-a", cdt.git_tag_for(stage), "-m", "#{tag_user} deployed #{current_sha} to #{stage}"
if cdt.git_tag?(cdt.last_git_tag_for(stage))
cdt.safe_run "git", "tag", "-d", cdt.last_git_tag_for(stage)
- cdt.safe_run "git", "push", "--tags" if cdt.has_remote?
+ cdt.safe_run "git", "push", "origin", ":refs/tags/#{cdt.last_git_tag_for(stage)}" if cdt.has_remote?
end
cdt.safe_run "git", "tag", "-a", cdt.last_git_tag_for(stage), "-m", "#{tag_user} deployed #{current_sha} to #{stage}"
Please sign in to comment.
Something went wrong with that request. Please try again.