From: Matthieu Moy Date: Mon, 22 Feb 2010 15:32:59 GMT Subject: Re: [PATCH] git-gui: fix worktree initialization with empty prefix Message-ID: In-Reply-To: <1266851964-13044-1-git-send-email-giuseppe.bilotta@gmail.com> Giuseppe Bilotta writes: > 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 (don't forget Signed-off-by) Thanks, -- Matthieu Moy http://www-verimag.imag.fr/~moy/