From: Henrik Austad <henrik@austad.us>
To: git@vger.kernel.org
Subject: git checkout does not warn about tags without corresponding commits
Date: Fri, 2 Jan 2009 13:25:57 +0100 [thread overview]
Message-ID: <200901021325.58049.henrik@austad.us> (raw)
Hi!
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 tag exists in the linux-tree (direct clone from Linus' tree), along with
v2.6.11-tree
However, when I inspect the log, I see that I am still stuck in master. So, I
did a git tag -v v2.6.11 and got the following:
object c39ae07f393806ccf406ef966e9a15afc43cc36a
type tree
tag v2.6.11-tree
This is the 2.6.11 tree object.
NOTE! There's no commit for this, since it happened before I started with git.
Eventually we'll import some sort of history, and that should tie this tree
object up to a real commit. In the meantime, this acts as an anchor point for
doing diffs etc under git.
gpg: Signature made Thu 05 May 2005 01:50:54 AM CEST using DSA key ID 76E21CBB
gpg: Good signature from "Linus Torvalds (tag signing key)
<torvalds@osdl.org>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: FF6D 4EAC 37AC C1B9 53AE C7E8 1776 2C46 76E2 1CBB
I can see that there's no commit for this, but, when there's a tag. I thought
that a tag was just a commit-sha1 with a name attached, along with some tag
info and a signature. Can you really create a tag without a commit?
Shouldn't git checkout fail in some way, letting me know that the checkout did
not check out what I thought it did? (I got aware of the bug when I found
CFS-related code in something I thought was 2.6.11.. :-)
--
-> henrik
next reply other threads:[~2009-01-02 12:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-02 12:25 Henrik Austad [this message]
2009-01-02 15:04 ` git checkout does not warn about tags without corresponding commits Miklos Vajna
2009-01-02 21:44 ` Junio C Hamano
2009-01-03 11:00 ` Henrik Austad
2009-01-03 11:36 ` Junio C Hamano
2009-01-03 11:53 ` Junio C Hamano
2009-01-03 12:37 ` Henrik Austad
2009-01-03 19:31 ` Daniel Barkalow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200901021325.58049.henrik@austad.us \
--to=henrik@austad.us \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).