Re: Impossible to change working directory

2016-10-01 Thread Torsten Bögershausen
On 29.09.16 21:30, Sebastian Feldmann wrote: > 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

Re: Impossible to change working directory

2016-09-29 Thread Junio C Hamano
Sebastian Feldmann writes: > 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? Yes, we always go to the top before doing

Impossible to change working directory

2016-09-29 Thread Sebastian Feldmann
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