From ea426fc5d6fcbfc9b9ec8e1e7081659bd9f28c10 Mon Sep 17 00:00:00 2001 From: Patrick Oscity Date: Tue, 20 Nov 2018 10:39:28 +0100 Subject: [PATCH] Push only the current tag --- lib/cap-deploy-tagger/tasks/tagger.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cap-deploy-tagger/tasks/tagger.rake b/lib/cap-deploy-tagger/tasks/tagger.rake index 7e831e3..371ed84 100644 --- a/lib/cap-deploy-tagger/tasks/tagger.rake +++ b/lib/cap-deploy-tagger/tasks/tagger.rake @@ -10,7 +10,7 @@ namespace :deploy do latest_revision = fetch(:current_revision) unless fetch(:sshkit_backend) == SSHKit::Backend::Printer # unless --dry-run flag present strategy.git "tag -f #{tag_name} #{latest_revision}" - strategy.git "push -f --tags" + strategy.git "push -f origin #{tag_name}" end info "[cap-deploy-tagger] Tagged #{latest_revision} with #{tag_name}" end