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

Re: git checkout does not warn about tags without corresponding commits

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 2, 2009, 21:44 UTC
Message-ID
<7v8wptcrhp.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200901021325.58049.henrik@austad.us>
Henrik Austad <henrik@austad.us> writes:
> I recently tried to do a checkout of (what I thought was the first) inux 
> kernel in the linux git repo.
>
> git checkout -b 2.6.11 v2.6.11

This should have barfed, and indeed I think it is a regression around v1.5.5. v1.5.4 and older git definitely fails to check out a tree object like that.

Previous: Miklos VajnaNext: Henrik Austad
Message 3 of 8 in “git checkout does not warn about tags without corresponding commits”
  1. Henrik AustadJan 2, 2009
  2. Miklos VajnaJan 2, 2009
  3. Junio C HamanoJan 2, 2009
  4. Henrik AustadJan 3, 2009
  5. Junio C HamanoJan 3, 2009
  6. Junio C HamanoJan 3, 2009
  7. Henrik AustadJan 3, 2009
  8. Daniel BarkalowJan 3, 2009

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.