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
No related merge requests found
......@@ -28,7 +28,7 @@ def check_if_integration_branch_is_up_to_date(
# Checkout manifest
try:
manifest_repo = Repo.clone_from(
clone_url.url, manifest_dir
clone_url.url, manifest_dir, depth=1
)
except GitCommandError as e:
sys.exit("ERROR: could not clone manifest repository\n" + str(e))
......
......@@ -51,7 +51,7 @@ def update_submodule(
# Checkout project
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:
sys.exit("ERROR: could not clone repository\n" + str(e))
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