The environment of a pinned git command (design "Git environment", E7;
plan B11d): the five variables of cleanGitEnvironment and
exactly three more, GIT_DIR, GIT_WORK_TREE and GIT_COMMON_DIR,
taken from the recorded identity. git then takes the worktree's git
directory, the common directory's config and objects, and the work tree
from these values, not from the directory, a .git file, the
worktree's commondir file or core.worktree. Under git 2.50.1 refs
are still found through the commondir file (probed for plan B11d).
The environment of a pinned git command (design "Git environment", E7; plan B11d): the five variables of cleanGitEnvironment and exactly three more,
GIT_DIR,GIT_WORK_TREEandGIT_COMMON_DIR, taken from the recorded identity. git then takes the worktree's git directory, the common directory's config and objects, and the work tree from these values, not from the directory, a.gitfile, the worktree'scommondirfile orcore.worktree. Under git 2.50.1 refs are still found through thecommondirfile (probed for plan B11d).