How can I run these submodules? The only thing i can find on the web is information on how to create submodules. But i just need to run them. Is this really so difficult?

After you have clone the repository, you'll need to run the following to pull in all the submodules:

git submodule init
git submodule update
cd externals/curlcall
git submodule init
git submodule update
link|improve this question
What exactly do you mean by "run these submodules"? – joschi May 29 '10 at 7:27
Well, if i knew the answer, i wouldn't be asking this question. Here is the readme on Github where they say you must run the submodules: github.com/NeilCrosby/wikislurp/blob/master/README.Markdown – DADU May 30 '10 at 10:52
1  
They don't say to "run the submodules"; they say to "run this to pull in the submodules" – Evan Broder Jul 6 '10 at 2:39
feedback

2 Answers

up vote 5 down vote accepted

Git submodules are vaguely like externals in subversion - they're references to external git repositories.

What the instructions in wikislurp are saying is that, in order to use the software, you need to not only clone the repository itself, but also clone the repositories that are referred to by the submodules.

The thing you quoted from the README,

git submodule init
git submodule update
cd externals/curlcall
git submodule init
git submodule update

are a series of commands to run in order to fetch the repositories referred to by the submodules, which are probably needed for building the software or whatever. Just run them at the same command line prompt you used to clone the repository.

Alternatively, if you have a new enough version of Git, you can abbreviate all of those commands to just git submodule update --init --recursive

link|improve this answer
+1 on the 'git submodule update --init --recursive' - that's probably what is meant when they say "run". – Ryan Montgomery Jul 6 '10 at 2:59
feedback

http://progit.org/book/ch6-6.html

link|improve this answer
I reallt don't understand what this says... Is it to create submodules. I just want to know how to use the lines of code in the original question. – DADU May 28 '10 at 16:51
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.