git version - 2.6.4
I have stuck in a situation where I am not able to clone complete repo content using --recursive
flag.
My main repository have two sub-directory health-check
and hellspawn
.
I have created hellspawn
as submodule and it has its entry in .gitmodules
file also.
I am not sure what health-check
is, whether a submodule
or nested-git
.
health-check
does not have entry in .gitmodules
which make me thing it might be nested-git
.
if so , then why am I getting git message when cloning main repository with
[email protected]:~/try$git clone --recursive
[email protected]:url/mainrepo.git
Cloning into 'mainrepo'...
remote: Counting objects: 28713, done.
remote: Compressing objects: 100% (613/613), done.
remote: Total 28713 (delta 363), reused 5 (delta 5), pack-reused 28090
Receiving objects: 100% (28713/28713), 788.79 MiB | 3.54 MiB/s, done.
Resolving deltas: 100% (17645/17645), done.
Checking connectivity... done.
Checking out files: 100% (40522/40522), done.
No submodule mapping found in .gitmodules for path 'health-check'
`
As you can see last line if health-check
is nested git then why git is checking in .gitmodules
file ??
Due to this error, I am not getting code downloaded even in hellspawn
which is submodule.
Any help
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…