Commit df954148 authored by Ayush Tiwari's avatar Ayush Tiwari

Update README

parent 087f2fe1
......@@ -462,7 +462,8 @@ to 'false'::
[git-clone]
recipe = slapos.recipe.build:gitclone
repository = https://example.net/example.git/
repository = https://lab.nexedi.com/tiwariayush/erp5
branch = pyodide
clone-submodules = false
Other options
......
......@@ -145,13 +145,13 @@ class Recipe(object):
self.git_command = 'git'
self.sparse = options.get('sparse-checkout', '').strip()
# Set boolean values
for key in ('develop', 'shared', 'use-cache', 'ignore-ssl-certificate'):
for key in ('develop', 'shared', 'use-cache', 'ignore-ssl-certificate',
'clone-submodules'):
setattr(self, key.replace('-', '_'), options.get(key, '').lower() in TRUE_VALUES)
if self.shared:
self.use_cache = False
self.networkcache = buildout.get('networkcache', {})
self.clone_submodules = buildout.get('clone-submodules', True)
# Check if input is correct
......@@ -213,6 +213,8 @@ class Recipe(object):
if self.ignore_ssl_certificate:
config.append('http.sslVerify=false')
if self.clone_submodules:
# `--recurse-submodules` to the git clone command will automatically
# initialize and update each submodule in the repository.
git_clone_command.append('--recurse-submodules')
if config and self.use_cache:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment