Re: Impossible to change working directory
- From
Torsten Bögershausen <tboegi@web.de>
- Date
- Oct 1, 2016, 15:34 UTC
- Message-ID
- <477492a9-7ff2-59d0-1463-b47694ce66c1@web.de>
- In-Reply-To
- <A99D7D06-8214-4C09-BCB2-E4FCE75FF317@sebastian-feldmann.info>
On 29.09.16 21:30, Sebastian Feldmann wrote:
Show 16 quoted lines
> Hi there, > > I have a problem executing a pre-commit hook. > The hook script has to change the working directory to work and if I use plain > > git commit > > it works as expected, the script executes without errors, but if I use > > git commit —only file.x file.y > > the script fails because changing the current working directory fails. > If I echo the current working directory it always echoes the root repository path > > Is this expected behavior? > Thanks for your feedback.
Is there any chance to send us the content of the script ? (Or a demo example, which doesn't work)