git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: linux@horizon.com
Cc: git@vger.kernel.org
Subject: Re: git-fetch will leave a ref pointing to a tag
Date: Mon, 2 Jul 2007 22:14:01 +0100 (BST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0707022207420.4071@racer.site> (raw)
In-Reply-To: <20070702194437.19202.qmail@science.horizon.com>

Hi,

On Mon, 2 Jul 2007, linux@horizon.com wrote:

> $ git branch temp tags/v2.6.22-rc6
> $ git fetch . tags/v2.6.22-rc7:temp

Why not do 'git branch temp v2.6.22-rc7' to begin with? Or even better: 
git checkout -b temp v2.6.22-rc7.

But in any case, you should know that there is no floating tag in git, and 
therefore, by storing it in the "branch" temp, you doom that branch to 
not be able to be committed to.

What you should have done, of course, is

$ git checkout temp
$ git merge v2.6.22-rc7

> $ git checkout temp
> $ (make minor change)
> $ git commit -a
> fatal: 087ea061253277de2b27e82d8572a386835a1b7e is not a valid 'commit' object
> 
> git-fetch does odd things when handed a tag rather than a commit.

No. It is perfectly sane to fetch a tag, and to store it.

> Also, should "git checkout" have complained?

Maybe. Dunno.

Ciao,
Dscho

  reply	other threads:[~2007-07-02 21:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-07-02 19:44 git-fetch will leave a ref pointing to a tag linux
2007-07-02 21:14 ` Johannes Schindelin [this message]
2007-07-02 23:11   ` Junio C Hamano
2007-07-02 23:29     ` Johannes Schindelin
2007-07-03  3:23   ` linux
2007-07-03  4:18     ` Jeff King
2007-07-03 12:01       ` Johannes Schindelin
2007-07-03 13:59         ` 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=Pine.LNX.4.64.0707022207420.4071@racer.site \
    --to=johannes.schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=linux@horizon.com \
    /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).