Submodule URL
- From
- Hilco Wijbenga <hilco.wijbenga@gmail.com>
- Date
- Jun 27, 2011, 22:38 UTC
- Message-ID
- <BANLkTikyZxiW_t27Y4bXCPBjbJd_DYbOyw@mail.gmail.com>
Hi all,
As I was creating a script to support a question about submodules I ran into something that I don't understand. I've attached a simple script that fails to execute properly. I don't understand why.
In essence, I'm setting up 2 separate, bare repositories on the local file system. One is intended to be a submodule, the other the umbrella project. I then try to clone the umbrella project. Although I use complete, absolute file:// URLs git submodule update --init fails because .gitmodules uses a relative URL instead of the absolute URL I provided initially. (Naturally, a relative URL could work too but it would have to be a different one.) :-)
Should I use a different syntax? Or are file:// URLs not supported for submodules? Or am I simply misunderstanding how this is supposed to work?
Cheers, Hilco