I would like to create submodules within my hosted repository using Gitolite. Submodules are easy enough in git outside of Gitolite. However, Gitolite seems to complicate things.
Asked
Active
Viewed 1,681 times
0
-
Maybe you could expand on why Gitolite is complicating things. – Kev Sep 30 '11 at 00:04
1 Answers
2
It's no different than having a second repository side by side. Once you create the second repository like you did for the first, add a submodule to the first one using the same url that you have for the second one when you created it.
git submodule add <same url as if you were just cloning> <some path>
git submodule update --init --recursive
Hope this helps.

Adam Dymitruk
- 124,556
- 26
- 146
- 141