-
Bug
-
Resolution: Won't Do
-
Major
-
None
Git submodules feature support relative path in submodules urls.
Unfortunately the hudson git plugin does not interpret the relative path in url correctly.
The effect is that the plugin is unable to fetch from the submodules distant urls.
For instance, project projectA can define submodules like this:
$ cat .gitmodules
[submodule "mod1"]
url = ../mod1
[submodule "mod2"]
url = ../mod2
$ git remote -v
origin git://github.com/user/projectA.git
In which case a git submodule update will fetch mod1 and mod2 from:
git://github.com/user/mod1
and
git://github.com/user/mod2
respectively
Currently the submodules support in the git plugin does not handle relative submodule url path, hence it tries to fetch directly from '../mod1' for instance.
A solution would be to implement the relative url resolution which would do:
git://github.com/user/projectA.git + ../mod1 => git://github.com/user/mod1
before fetching from the submodule url.