jenkinsci/git-plugin — pull request #48 by zyv (2011-11-10 15:45:40+00:00)
Title: Implement a way to disable git submodule support completely

This option is very useful when you want to do very advanced or plain weird stuff with your submodules from the build scripts and Jenkins keep getting into your way. By disabling support for submodules you can still keep using basic git polling functionality and just have Jenkins to ignore submodules completely as if they didn't exist.

The motivation for this is a follows:

By default, whenever Jenkins detects that the repository uses submodules it will go ahead and check them all out whether you want it or not. In many cases this is totally appropriate, however, unfortunately some projects use submodules for things like different versions of JDKs and precompiled libraries and you *really* don't want to pull 4 Gigs worth of this stuff in.

However, if one gives up on git plugin completely, one loses the possibility of using SCM polling and all the fancy SCM-related goodies etc., which is annoying. So I decided to add an option to disable the support for submodules (false by default), which would take care of all these corner cases...

Signed-off-by: Yury V. Zaytsev