Git development
 help / color / mirror / Atom feed
* Impossible to change working directory
@ 2016-09-29 19:30 Sebastian Feldmann
  2016-09-29 23:24 ` Junio C Hamano
  2016-10-01 15:34 ` Torsten Bögershausen
  0 siblings, 2 replies; 3+ messages in thread
From: Sebastian Feldmann @ 2016-09-29 19:30 UTC (permalink / raw)
  To: git

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.

Cheers Sebastian





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-01 15:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-29 19:30 Impossible to change working directory Sebastian Feldmann
2016-09-29 23:24 ` Junio C Hamano
2016-10-01 15:34 ` Torsten Bögershausen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox