Git sets some environment variables when executing a shell command. Specifically it sets GIT_DIR when called inside a submodule. This makes git inside the subshell target the main worktree instead of the temporary one.
Git sets some environment variables when executing a shell command. Specifically it sets GIT_DIR when called inside a submodule. This makes git inside the subshell target the main worktree instead of the temporary one.