Spring-cloud-config: Option to clone git submodule at start ?

Created on 13 Jun 2017  路  6Comments  路  Source: spring-cloud/spring-cloud-config

At start of the server, when git repository is clonned, submoduler are not cloned / updated.

I havent find any option to send "--recussive" option for git clone.
Does the option exist ?
Do you have a way to clone the submodules ?

enhancement

Most helpful comment

I think this would be an enhancement specific to git. We already have a cloneOnStart option that is specific to git.

All 6 comments

I don't believe so. This is a concept specific to git and not other backends so I dont think we have a way to do that.

it's seems that jgit have an option to clone Submodule ; http://download.eclipse.org/jgit/site/4.7.1.201706071930-r/apidocs/org/eclipse/jgit/api/CloneCommand.html

@alexcorvino I seen you have worked on similar enhencement to clone on startup have you an idea ?

Right, but the config server supports other backends besides git (SVN, filesystem, Vault). That concept doesnt translate to those backends.

I think this would be an enhancement specific to git. We already have a cloneOnStart option that is specific to git.

this MR fixes our issue as well, would be a huge addition.

This is now an option spring.cloud.config.server.git.clone-submodules=true.

Was this page helpful?
0 / 5 - 0 ratings