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

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:51

Henrik Austad [off-list ref] 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.

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

From: Henrik Austad <hidden>
Date: 2016-06-15 22:45:51

On Friday 02 January 2009 22:44:50 Junio C Hamano wrote:
Henrik Austad [off-list ref] writes:
quoted
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

It introduces quite a large change, adding checkout-builtin.c, which coud be 
the cause I guess.

As of how to fix this (if a fix is desired) I have not yet any clue what so 
ever :-)

I attached the bisect result (sorry if attachements are frowned upon, but my 
email client tends to mutilate text-contents like that).

-- 
 -> henrik
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help