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.
3.0 KiB
Executable File
3.0 KiB
Executable File