From: Sebastian Schuberth <sschuberth@gmail.com>
To: git@vger.kernel.org
Subject: Re: Trouble with cat-file on tags
Date: Fri, 1 Apr 2016 11:32:42 +0200 [thread overview]
Message-ID: <ndlf7q$ghe$1@ger.gmane.org> (raw)
In-Reply-To: <ndlesh$dj1$1@ger.gmane.org>
On 4/1/2016 11:26, Sebastian Schuberth wrote:
> ---8<---
> $ git tag test-tag
>
> $ git tag -l
> test-tag
> v0.0.3
> v0.0.4
> v0.1.0
> v0.1.1
> v0.1.2
>
> $ git cat-file tag refs/tags/test-tag
> fatal: git cat-file refs/tags/test-tag: bad file
> ---8<---
Alright, I just found out why that is: Lighweight tags are not stored as
Git objects. As soon as I make it an annoted tag by specifying a
message, "cat-file tag" do esnot display a fatal error anymore.
However, I still get information about the commit oject iintsead of the
tag object. Is this expected?
Regards,
Sebastian
next prev parent reply other threads:[~2016-04-01 9:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-01 9:26 Trouble with cat-file on tags Sebastian Schuberth
2016-04-01 9:32 ` Sebastian Schuberth [this message]
2016-04-01 10:00 ` Sebastian Schuberth
2016-04-01 12:26 ` Jeff King
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='ndlf7q$ghe$1@ger.gmane.org' \
--to=sschuberth@gmail.com \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.