Thread (9 messages) 9 messages, 2 authors, 2022-08-01

Re: "git symbolic-ref" doesn't do a very good job

From: Jeff King <hidden>
Date: 2022-08-01 17:46:13

On Mon, Aug 01, 2022 at 01:43:06PM -0400, Jeff King wrote:
  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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help