{"thread":{"id":"40935","subject":"Push --follow tags does not agree with its documentation","startedAt":"2015-12-04T21:41:46Z","lastAt":"2015-12-04T21:41:46Z","messageCount":1,"participants":["Dennis Kaarsemaker"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"274028","messageId":"1449265306.29869.6.camel@kaarsemaker.net","threadId":"40935","inReplyTo":null,"subject":"Push --follow tags does not agree with its documentation","fromName":"Dennis Kaarsemaker","fromEmail":"dennis@kaarsemaker.net","sentAt":"2015-12-04T21:41:46Z","receivedAt":"2015-12-04T21:41:46Z","isPatch":false,"sender":{"key":"dennis@kaarsemaker.net","avatar":"https://avatars.githubusercontent.com/u/200649?v=4"},"body":"When deleting an annotated tag with git push -d while having\npush.follwTags set to true, causes push to push other annotated tags. I\nwas surprised by this as this does not agree with the documentation\n\n\tPush all the refs that would be pushed without this option, and\n\talso push annotated tags in refs/tags that are missing from the\n\tremote but are pointing at commit-ish that are reachable from\n\tthe refs being pushed. This can also be specified with\n\tconfiguration variable push.followTags. For more information,\n\tsee push.followTags in git-config(1).\n\nNote also that the tag pushed in error is not even reachable from the\ntag that's being deleted.\n\n$ git config push.followTags\ntrue\n\n$ git push origin --delete v2.5.1\nTo /tmp/whelk.git/\n - [deleted]         v2.5.1\n\n$ git push origin --delete 2.5\n\nCounting objects: 1, done.\nWriting objects: 100% (1/1), 166 bytes | 0 bytes/s, done.\nTotal 1 (delta 0), reused 1 (delta 0)\nTo /tmp/whelk.git/\n - [deleted]         2.5\n * [new tag]         v2.5.1 -> v2.5.1\n\nWhich one is correct in this case, the behaviour or the documentation?\n-- \nDennis Kaarsemaker\nwww.kaarsemaker.net\n"}]}