In a git hook is the current working directory guaranteed to be within the git repository?

The current answers appear to be outdated. As of 2.9.0, the docs state the following:

Before Git invokes a hook, it changes its working directory to either
the root of the working tree in a non-bare repository, or to the
$GIT_DIR in a bare repository.

https://git-scm.com/docs/githooks/2.9.0

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)