First of all, that question may sounds stupid, but I see no other way to do it.
For one of the project at work, I need to add a dependency. There is a script that automatically grabs the tarball archive, decompress it, add the patches and build it. In my case, I have a tarball of a github project (restbed), and it need his own dependencies, as a submodule (asio, openssl and catch). The main problem is that the archive contains only restbed's sources, and not the dependencies.
Hopefully, there's the .gitmodules file in the archive
[submodule "dependency/asio"]
path = dependency/asio
url = https://github.com/corvusoft/asio-dependency
branch = master
[submodule "dependency/catch"]
path = dependency/catch
url = https://github.com/corvusoft/catch-dependency
branch = master
[submodule "dependency/openssl"]
path = dependency/openssl
url = https://github.com/corvusoft/openssl-dependency
branch = OpenSSL_1_0_2-stable
So I tried the classic git submodule init
, which gave me fatal: Not a git repository (or any of the parent directories): .git
.
So, is there a way to get the dependencies of the project, or do I have to add them manually to the project?
Thanks.