From 09b35efcc4f36d21cfa9b71c71bd7eb0ebd8ddf2 Mon Sep 17 00:00:00 2001 From: Karl Matthias Date: Tue, 24 Apr 2012 17:18:58 +0100 Subject: [PATCH] This needs to actually force push the tag or you can end up in a bad state. --- lib/capistrano/deploy_tags.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/deploy_tags.rb b/lib/capistrano/deploy_tags.rb index 6419cf4..69d4cf5 100644 --- a/lib/capistrano/deploy_tags.rb +++ b/lib/capistrano/deploy_tags.rb @@ -64,7 +64,7 @@ module Capistrano 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}"