Re: [PATCH] git-gui: fix worktree initialization with empty prefix
Giuseppe Bilotta <giuseppe.bilotta@gmail.com> writes:
Show 8 quoted lines
> This is sort of a chicken-and-egg problem, because we should only
> bother setting the worktree if we are not in a bare repository, but
> an unset worktree is one of the conditions we check to see if we have
> a bare repository.
>
> Maintain the same sequence of checks, but swap the check for bareness
> support and bareness of repository, and check again for an unset
> worktree if we are not in the bare case.
Tested-by: Matthieu Moy <Matthieu.Moy@imag.fr>
(don't forget Signed-off-by)
Thanks,
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/