1

I try to clone antlr4dart repository

git clone https://github.com/tiagomazzutti/antlr4dart

but subdirectory antlr4dart/antlr4dart-runtime stays empty. All other files are cloned as I expected. What have I done wrong?

Thanks, Michael

Community
  • 1
  • 1
maiermic
  • 4,764
  • 6
  • 38
  • 77

3 Answers3

5

You need to add (after the git clone):

cd antlr4dart
git submodule update --init

That gray "antlr4dart-runtime" folder in the GitHub repo is a submodule, with a gitlink entry referring to the SHA1 1f4b2b6 of that submodule repo.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
5

After the cloning, you have to jump into the directory:

cd antlr4dart

To get all the submodules of a directory cloned, do:

git submodule update --init

With version 1.6.5 of Git and later, you can use:

git clone --recursive git://github.com/foo/bar.git
user2391174
  • 138
  • 10
0

keep in mind that folders preceded by a . don't show up. you can still access them by the cd command.

uki
  • 47
  • 3