diff --git a/check_if_integration_branch_is_up_to_date.py b/check_if_integration_branch_is_up_to_date.py index a6eeb31e67b04eb43895d0997aaccb105162b2af..664dc5133bac1c065b364de2c22a51ead2d6e69d 100755 --- a/check_if_integration_branch_is_up_to_date.py +++ b/check_if_integration_branch_is_up_to_date.py @@ -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)) diff --git a/update_submodule.py b/update_submodule.py index 9a7273e5c9611070852db9d9788e87e9f788761e..d749fa57ba39e0999544067ba706ab13c07ba214 100755 --- a/update_submodule.py +++ b/update_submodule.py @@ -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: