Re: Annoying absolute path for "core.worktree" to submodule
- From
Jens Lehmann <jens.lehmann@web.de>
- Date
- Mar 21, 2012, 19:41 UTC
- Message-ID
- <4F6A2EF7.5090007@web.de>
- In-Reply-To
- <A5E8E180685CEF45AB9E737A010799802D9872@cdnz-ex1.corp.cubic.cub>
Am 20.03.2012 22:39, schrieb Holding, Lawrence:
> Slightly off topic, but related, what is the recommended way for finding > the git folder from the top level project or any of the submodules?
Run "git rev-parse --git-dir" inside the repo whose git folder you want to know.
> And of finding the working tree from inside a hook script?
I would expect hooks to be run in the work tree's top level directory, but I haven't checked that.