In this case, the git dir is computed as the output of “git rev-parse –git-dir”, and the the work tree is normalized using “git rev-parse –show-cdup”. To force the use of a different work tree, set the “GIT_WORK_TREE” environment variable in the option hash.