Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.recipe.build
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
slapos.recipe.build
Commits
df954148
Commit
df954148
authored
Nov 27, 2018
by
Ayush Tiwari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README
parent
087f2fe1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
README.rst
README.rst
+2
-1
slapos/recipe/gitclone.py
slapos/recipe/gitclone.py
+4
-2
No files found.
README.rst
View file @
df954148
...
...
@@ -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
...
...
slapos/recipe/gitclone.py
View file @
df954148
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment