git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Push --follow tags does not agree with its documentation

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Dec 4, 2015, 21:41 UTC
Message-ID
<1449265306.29869.6.camel@kaarsemaker.net>

When deleting an annotated tag with git push -d while having push.follwTags set to true, causes push to push other annotated tags. I was surprised by this as this does not agree with the documentation

	Push all the refs that would be pushed without this option, and
	also push annotated tags in refs/tags that are missing from the
	remote but are pointing at commit-ish that are reachable from
	the refs being pushed. This can also be specified with
	configuration variable push.followTags. For more information,
	see push.followTags in git-config(1).

Note also that the tag pushed in error is not even reachable from the tag that's being deleted.

$ git config push.followTags true

$ git push origin --delete v2.5.1
To /tmp/whelk.git/
 - [deleted]         v2.5.1
$ git push origin --delete 2.5
Counting objects: 1, done.
Writing objects: 100% (1/1), 166 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 1 (delta 0)
To /tmp/whelk.git/
 - [deleted]         2.5
 * [new tag]         v2.5.1 -> v2.5.1
Which one is correct in this case, the behaviour or the documentation?
-- 
Dennis Kaarsemaker
www.kaarsemaker.net
Message 1 of 1 in “Push --follow tags does not agree with its documentation”
  1. Dennis KaarsemakerDec 4, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.