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

Re: BUG: For first push to a bare repo, using "--tags" prevents creation of master branch

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
May 29, 2015, 15:45 UTC
Message-ID
<vpq4mmvs7zx.fsf@anie.imag.fr>
In-Reply-To
<xmqq617bflzh.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 5 quoted lines
> Yeah.  I am not sure --tags-also is necessarily a good thing (I do
> not think "fetch --tags" is a good thing, either).  If --follow-tags
> does not touch lightweight ones, that may be a bug we would want to
> fix.  I did not mean to implement --follow-tags that way, and I do
> not offhand remember if there was a reason to omit lightweight ones.

It's documented to push only annotated tags both in the commit message of c2aba15 (push: --follow-tags, 2013-03-04) and in the man page, so it was done on purpose, but I don't know if it was a good thing.

Perhaps a justification is that annotated tags are clearly meant to be public while lightweight tags can also be used as private bookmarks.

In any case, the fact that it's been this way and documented this way since 2013 makes it a bit hard to change now.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 9 in “BUG: For first push to a bare repo, using "--tags" prevents creation of master branch”
  1. Michael DarlingMay 29, 2015
  2. Matthieu MoyMay 29, 2015
  3. Junio C HamanoMay 29, 2015
  4. Matthieu MoyMay 29, 2015
  5. Junio C HamanoMay 29, 2015
  6. Junio C HamanoMay 29, 2015
  7. Matthieu MoyMay 29, 2015
  8. Junio C HamanoMay 29, 2015
  9. Junio C HamanoJun 2, 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.