Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| git_hooks [2019/02/19 11:07] – [Default hook installation for a new repository] rpjday | git_hooks [2019/02/19 11:10] (current) – [Default hook installation for a new repository] rpjday | ||
|---|---|---|---|
| Line 37: | Line 37: | ||
| * Remove the '' | * Remove the '' | ||
| + | ===== Where hooks are effectively run ===== | ||
| + | |||
| + | From '' | ||
| + | |||
| + | < | ||
| + | Before Git invokes a hook, it changes its working directory to | ||
| + | either $GIT_DIR in a bare repository or the root of the working | ||
| + | tree in a non-bare repository. An exception are hooks triggered | ||
| + | during a push (pre-receive, | ||
| + | push-to-checkout) which are always executed in $GIT_DIR. | ||
| + | </ | ||
| ===== commit-related client-side hooks ===== | ===== commit-related client-side hooks ===== | ||