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
Daniel Barkalow <barkalow@iabervon.org>
Date
Jan 3, 2009, 19:31 UTC
Message-ID
<alpine.LNX.1.00.0901031410130.19665@iabervon.org>
In-Reply-To
<7vr63k8vvf.fsf@gitster.siamese.dyndns.org>
On Sat, 3 Jan 2009, Junio C Hamano wrote:
Show 24 quoted lines
> Henrik Austad <henrik@austad.us> writes:
> 
> > On Friday 02 January 2009 22:44:50 Junio C Hamano wrote:
> >> 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.
> >
> > You're right, I bisected it down to commit 
> > 782c2d65c24066a5d83453efb52763bc34c10f81
> 
> I am not surprised.
> 
> That one discarded an implementation of "git checkout" in Bourne shell,
> with a complete reimplementation in C.
> 
> I haven't looked at the code very closely, but I think this should fix
> it.  Thorough reviewing (not just running the test suite) is much
> appreciated.
That looks right to me.
Acked-by: Daniel Barkalow <barkalow@iabervon.org>
	-Daniel
*This .sig left intentionally blank*
Previous: Henrik Austad
Message 8 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.