Re: git-fetch will leave a ref pointing to a tag
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 2, 2007, 23:11 UTC
- Message-ID
- <7v4pkmwgda.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0707022207420.4071@racer.site>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 8 quoted lines
> 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 > ... > No. It is perfectly sane to fetch a tag, and to store it.
Yes, but not to a branch.
Anything under refs/heads/ should point at a commit and if we allowed a tag to be pointed at, you probably can argue that is a bug.