mydrive / capistrano-deploytags

Add timestamped Git tags for each environment on deployment
BSD 2-Clause "Simplified" License
123 stars 20 forks source link

latest tag isn't updated if version hasn't changed #1

Closed gavinheavyside closed 12 years ago

gavinheavyside commented 12 years ago

When re-deploying the same version that was previously installed:

To git@github.com:mydrive/project.git
 * [new tag]         project-2012.04.24-165318 -> project-2012.04.24-165318
 ! [rejected]        project-latest -> project-latest (non-fast-forward)
error: failed to push some refs to 'git@github.com:mydrive/repo.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again.  See the
'Note about fast-forwards' section of 'git push --help' for details.
relistan commented 12 years ago

You are right! This is now fixed in 0.5.2 with a modification to push the ref of the deleted tag. This probably also fixes a few other potential corner cases around deleting tags as well.