alanfalloon/gitosis — comment on commit 2a2aa844934cc6ebfb71b4c65075ac26e7e3bf2a
File:  line 0
By che0:

If you need it for hooks and such than my first guess would be that the repository path is already in $GIT_DIR or set as working directory the hooks is running.