TEST: "checkout --to" vs submodules test
path: implement common_dir handling in git_path_submodule()

Same as for .git, but ignores the GIT_COMMON_DIR environment
variable.

This allows making submodules a linked workdirs.
Merge 'tmp/multiple_work_trees_fixes'