if GIT_DIR was properly set, we could do some git operations from inside the ebuild, like querying the repo to glean out the current head commit so that it could be stored somewhere ... otherwise we need to do: git --git-dir=${EGIT_STORE_DIR}/${EGIT_PROJECT} ...
I'm going to go with a different approach here since I'm going to move the git- commands out of PATH sometime soon. I'll add a 'git_cmd' that will execute a proper git command (by passing --git-dir and other stuff we might need in future). - ferdy
In the end, zlin made git.eclass export GIT_DIR to an absolute path. Thanks to both of you. - ferdy