When did Git stop automatically treating nested repositories as simple subdirectories and is this behavior supported in any way anymore? -
so know git submodules , subtrees. used able have nested full git repositories treated nothing simple filesystem subdirectories?
for example, given:
topdir/ file1 file2 subdir1/ file1 file2 subdir2/ file1 file2 subdir3/ .git/ file1 file2
previously, executing:
$ git init && git commit -a .
in topdir
result in files of subdir3
being committed raw or literal subdirectory (i.e. not submodule), '.git' directory in subdirectory ignored in super- or top-level repository. entering subdir3
make subdir3/.git
current repository.
with 1.8.2.1.501, there not seem way behavior back. running above command results in subdir3
being considered submodule but, perversely not added index. have explicitly git submodule add
add files under main repo.
when did change happen?
is there way old behavior back, i.e., have subdirectory treated regular directory, , not git submodule or subtree?
Comments
Post a Comment