Fix bug with tags that are pushed with --force

When you deploy a tag that was on the wrong commit and the push a the
same tag with --force to fix it, then the cached repository doesn't prune
the old tags. This stops you from being able to deploy that tagged version.