Re: [PATCH] gitk: to run in a bare repository (was: gitk can't be run from non-worktree folders)
- From
Jeff King <peff@peff.net>
- Date
- Jan 23, 2020, 19:27 UTC
- Message-ID
- <20200123192707.GA110440@coredump.intra.peff.net>
- In-Reply-To
- <xmqqk15i3rp7.fsf_-_@gitster-ct.c.googlers.com>
On Thu, Jan 23, 2020 at 11:20:36AM -0800, Junio C Hamano wrote:
> -- >8 -- > Subject: [PATCH] gitk: be prepared to be run in a bare repository
Thanks all for cleaning up the mess I caused. I do prefer adjusting gitk like this rather than reverting the change in Git. Despite the regression, I think the case of "--show-toplevel without a working tree" is sufficiently undefined that it's probably good for callers to actually decide what the right behavior is.
> Recent versions of git however notices that "rev-parse --show-toplevel" > executed in a bare repository is an error, which makes gitk stop, > even before the user could attempt to run external diff.
It might be worth mentioning 2d92ab32 by name in this paragraph of the commit message.
-Peff