Re: Detached checkout will clobber branch head when using symlink HEAD
On Thu, 16 Oct 2008, Matt Draisey wrote:
Show 14 quoted lines
> On Thu, 2008-10-16 at 15:17 -0400, Jeff King wrote:
>
> > Hmm. I don't think we have shipped with a symlink HEAD for quite a long
> > time. Using one obviously doesn't work with detached HEAD, but also
> > would fail with packed refs. I don't know if we ever deprecated it.
>
> I am using the following system defaults:
>
> core.prefersymlinkrefs=true
> gc.packrefs=false
>
> so almost all my git repositories are still using a symlink HEAD.
> I have some old scripts That I use occasionally and still depend on it.
> Using detached checkout is the only problem I've had.
A symlink HEAD and detached checkouts are simply incompatible.
Nicolas