Re: [RFC/PATCH] Implement poor-man's submodule support in pre-commit hook
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Dec 20, 2006, 10:08 UTC
- Message-ID
- <200612201008.49045.andyparkins@gmail.com>
- In-Reply-To
- <200612200901.30584.andyparkins@gmail.com>
Hello,
Help...
> +if [ -f .gitmodules ]; then
This doesn't work because git-commit is not necessarily in the root of the working tree. How do I safely get that root? While ${GIT_DIR}/.. would work it is not guaranteed.
Andy
-- Dr Andy Parkins, M Eng (hons), MIEE