Skip to content
Snippets Groups Projects
Commit e60e50b1 authored by Jonas Höppner's avatar Jonas Höppner
Browse files

CI: Limit clone depth to 1 for speed

parent 56b4cacb
No related branches found
No related tags found
1 merge request!101CI: Create pipeline to deploy changes in gitlab-ci to all subprojects, include all CI implementations from there.
...@@ -28,7 +28,7 @@ def check_if_integration_branch_is_up_to_date( ...@@ -28,7 +28,7 @@ def check_if_integration_branch_is_up_to_date(
# Checkout manifest # Checkout manifest
try: try:
manifest_repo = Repo.clone_from( manifest_repo = Repo.clone_from(
clone_url.url, manifest_dir clone_url.url, manifest_dir, depth=1
) )
except GitCommandError as e: except GitCommandError as e:
sys.exit("ERROR: could not clone manifest repository\n" + str(e)) sys.exit("ERROR: could not clone manifest repository\n" + str(e))
......
...@@ -51,7 +51,7 @@ def update_submodule( ...@@ -51,7 +51,7 @@ def update_submodule(
# Checkout project # Checkout project
try: try:
repo = Repo.clone_from(clone_url.url, project_dir, branch=branch) repo = Repo.clone_from(clone_url.url, project_dir, branch=branch, depth=1)
except GitCommandError as e: except GitCommandError as e:
sys.exit("ERROR: could not clone repository\n" + str(e)) sys.exit("ERROR: could not clone repository\n" + str(e))
except IndexError: except IndexError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment