Commit 69ecab0f authored by Didier WECKMANN's avatar Didier WECKMANN
Browse files

feat: add more tolerant mode in case of restricted repository

parent b10130b6
......@@ -349,7 +349,7 @@ def update_repository(parsed_arguments, gitlab_instance, repository):
print("cd {0} && git gc --aggressive --prune".format(repository))
if not parsed_arguments.dry:'git gc --aggressive --prune'), cwd=repository, check=True)'git gc --aggressive --prune'), cwd=repository, check=not parsed_arguments.tolerant)
def clone(parsed_arguments, gitlab_instance, root=os.getcwd()):
......@@ -414,7 +414,7 @@ def clone_project(parsed_arguments, gitlab_instance, project, root=os.getcwd(),
if not parsed_arguments.dry:
shlex.split("git clone --shared --recurse-submodules {0} {1}".format(origin_url, repository_path)),
check=not parsed_arguments.tolerant)
def conan(parsed_arguments, gitlab_instance, root=os.getcwd()):
......@@ -577,9 +577,8 @@ def reclone(parsed_arguments, repository):
print("git clone --shared --recurse-submodules {0} {1}".format(origin_url, repository))
if not parsed_arguments.dry:
check = not parsed_arguments.tolerant"git clone --shared --recurse-submodules {0} {1}".format(origin_url, repository)),
check=not parsed_arguments.tolerant)
if __name__ == "__main__":
Supports Markdown
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