0

As stated in the documentation:

When you receive such a project, you get the directories that contain submodules, but none of the files yet

I clone it with --recursive flag and git submodule init in it (?)

$ git clone --recursive git://path/to/repo.git
$ git submodule init
$ git submodule update

But I don't even get the directories. The .gitmodule file is there.

.gitmodule content:

[submodule "Alamofire"]
path = Alamofire
url = https://github.com/Alamofire/Alamofire.git

I use git version 2.11.0

Seto
  • 1,234
  • 1
  • 17
  • 33

1 Answers1

0

Ok, it's silly thing. My workmate seemed forget to add the submodule directory into git. The directory should add to the git.

Although DbConnector is a subdirectory in your working directory, Git sees it as a submodule and doesn’t track its contents when you’re not in that directory. Instead, Git sees it as a particular commit from that repository.

Documentation

Seto
  • 1,234
  • 1
  • 17
  • 33