Synopsis of man page for githooks.
For example post-merge and post-rewrite hooks work perfectly with $GIT_DIR
variable. It is set automagically to .git subdirectory of my working
directory. For sure it can be defined by setting $GIT_DIR explicitly or
with --separate-git-dir option. And this is
Hi!
It was really suprising when I find out that GIT_DIR variable is missing in
some hooks.
I want to run hook before executing `git pull --rebase` command, so I use
`pre-rebase` hook for that. There is GIT_DIR variable in my script and as I
see it is unset.
Is it expected behaviour or