1

I'm a new user of Bitbucket and also new with Git. In my project repository I use modules which are in separate folders. But some of this folders are not clickable, they only show the name with an arrow + number.
Who can explain me what this means?

I understood that this is submodules, but when I use git clone to another folder in my computer its not downloaded. what am I doing wrong?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
eli
  • 205
  • 2
  • 5
  • 12
  • Possible duplicate of [How to `git clone` including submodules?](http://stackoverflow.com/q/3796927/124319) (answer: `git clone --recursive`) – coredump Jun 03 '15 at 07:34

1 Answers1

1

It means the submodule references a SHA1 of another repo. That is the SHA1 you see after the arrow.
This is a special entry in the index, called gitlink.

You can see those in the question "Bitbucket submodules wont delete".

example

When you clone a repo with submodule, you need to add:

git submodule update --init

Then you would see the content of the submodule, as a detached HEAD.

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