On Wed, Jul 11, 2018 at 02:53:37PM +0200, Jochen Wiedmann wrote: [...] > Is it possible for me to distinguish between a "bare repository" and > the "root of a working tree"?
Uh, this is an apples to oranges comparison: a bare repository has no work tree, and a regular repository consists of a work tree and a directory named ".git" and containing the Git object database inside it. So, is your question should instead be read as "how do I tell whether my hook runs in a bare or in a normal repository"? If yes, let's instead start with discussing what type of hook you intend to run; otherwise we may be dragged away by discussing a non-issue (search for the "XY problem" on the 'net). -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
