Sebastian Feldmann <sf@xxxxxxxxxxxxxxxxxxxxxxx> 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 anything. If you echo environment variables Git may set up for you, what do you see? Do you see GIT_PREFIX that you can use to tell where you came from, or something like that?