Re: "git symbolic-ref" doesn't do a very good job
- From
Jeff King <peff@peff.net>
- Date
- Aug 1, 2022, 17:46 UTC
- Message-ID
- <YugRYN6sbP+RpxlJ@coredump.intra.peff.net>
- In-Reply-To
- <YugQqp4oN26OFOpt@coredump.intra.peff.net>
On Mon, Aug 01, 2022 at 01:43:06PM -0400, Jeff King wrote:
Show 5 quoted lines
> 2. Your patch, but with ALLOW_ONELEVEL. This fixes nonsense like
> "foo..bar", but doesn't break "FETCH_HEAD". Requires fixing t4202's
> ".lock" example. Replaces the HEAD starts_with("refs/") check.
>
> 3. Your patch as-is. Same as (2), but also breaks FETCH_HEAD.Er, sorry, the starts_with() thing is the other way around. It is redundant with your patch, but necessary to keep it for (2). Luckily t1401 catches the problem if you dare to try it. ;)
-Peff