Re: [git-users] GIT_DIR missing in pre-rebase hook

2015-05-27 Thread Nick Kugaevsky
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

[git-users] GIT_DIR missing in pre-rebase hook

2015-05-26 Thread Nick Kugaevsky
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